/* ==========================================================================
   1. GLOBAL RESET & BASE 
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION 
   ========================================================================== */
header.site-header {
    background: #2f2f2f;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

header h1 { font-size: 32px; margin-bottom: 15px; }

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
}

/* ==========================================================================
   3. HERO SLIDER 
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
    border: 1px solid #d1d5db;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slider-container::-webkit-scrollbar { display: none; }

.slide {
    width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 50px 40px;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.slide-text h2 { font-size: 2.2rem; color: #1a202c; margin: 10px 0; }
.top-label { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; color: #718096; font-weight: bold; }
.slide-image img { max-height: 320px; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15)); }

.btn-gold {
    display: inline-block;
    background: #2b6cb0;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.slider-nav a { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.1); }

/* ==========================================================================
   4. FILTER & SEARCH BAR 
   ========================================================================== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    flex: 1;
    max-width: 400px;
    transition: border-color 0.2s;
}

.search-form:focus-within { border-color: #cbd5e0; background: #fff; }
.search-form input { border: none; background: transparent; padding: 8px; width: 100%; outline: none; font-size: 14px; }

.search-submit {
    background: transparent;
    border: none;
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    transition: color 0.2s, transform 0.2s;
}

.search-submit:hover { color: #2b6cb0; transform: scale(1.1); }
.search-submit.loading svg { animation: rotate 1s linear infinite; color: #2b6cb0; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.results-count { margin-bottom: 20px; font-size: 14px; color: #4a5568; }
.results-count strong { color: #2b6cb0; }

/* ==========================================================================
   5. PRODUCT GRID & CARDS 
   ========================================================================== */
.shop-header { text-align: center; margin-bottom: 40px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 15px;
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }

.product-image {
    position: relative;
    height: 220px;
    background: #fcfaf2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img { width: 100%; height: 100%; object-fit: contain; }

.temple-label { font-size: 10px; font-weight: bold; color: #8c7851; text-transform: uppercase; }
.product-info h3 { font-size: 16px; margin: 5px 0; color: #1a202c; height: 44px; overflow: hidden; }
.description { font-size: 13px; color: #666; line-height: 1.4; margin-bottom: 15px; }

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price { font-size: 16px; font-weight: 700; color: #2d3748; }
.pay-now { background: #2b6cb0; color: #fff; padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: bold; }

/* ==========================================================================
   6. PRODUCT SINGLE VIEW 
   ========================================================================== */
.product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.view-image {
    background: #fcfaf2;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-image img { max-width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.12)); }
.breadcrumb { font-size: 13px; color: #718096; margin-bottom: 15px; }
.temple-tag { display: inline-block; color: #8c7851; font-weight: bold; text-transform: uppercase; font-size: 11px; background: #fcfaf2; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.view-details h1 { font-size: 32px; color: #1a202c; margin: 10px 0; line-height: 1.2; }
.view-price { font-size: 28px; font-weight: 800; color: #2d3748; margin-bottom: 25px; }
.btn-buy-large { display: block; background: #2b6cb0; color: #fff; text-align: center; padding: 18px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 18px; transition: 0.3s; }
.btn-buy-large:hover { background: #1a4971; transform: translateY(-2px); box-shadow: 0 10px 15px rgba(43, 108, 176, 0.2); }

/* ==========================================================================
   7. TRUST & SHIPPING 
   ========================================================================== */
.view-actions { margin-top: 30px; padding: 20px; border: 1px dashed #cbd5e0; border-radius: 12px; }
.trust-badge { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; padding: 8px; background: #f0fff4; border-radius: 6px; color: #2f855a; font-size: 12px; font-weight: 600; }
.trust-badge svg { color: #38a169; }

.shipping-note-container { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; color: #718096; }
.shipping-icon { color: #2b6cb0; flex-shrink: 0; }
.shipping-note { font-size: 13px; font-weight: 500; letter-spacing: 0.3px; }

.shipping-box { text-align: center; background: #fff; padding: 40px; border-radius: 12px; margin-top: 40px; }

/* ==========================================================================
   8. RELATED PRODUCTS 
   ========================================================================== */
.related-section { margin-top: 80px; padding-bottom: 40px; }
.section-divider { border: 0; height: 1px; background: #e2e8f0; margin-bottom: 40px; }
.section-title { font-size: 22px; color: #1a202c; margin-bottom: 30px; text-align: center; }
.related-grid { grid-template-columns: repeat(3, 1fr) !important; max-width: 900px; margin: 0 auto; }
.view-link { font-size: 13px; color: #2b6cb0; text-decoration: none; font-weight: 600; }

/* ==========================================================================
   9. FOOTER 
   ========================================================================== */
.main-footer { background: #1a202c; color: #e2e8f0; padding: 60px 0 30px; margin-top: 100px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 0 20px; }
.footer-col h3 { color: #fff; font-size: 18px; margin-bottom: 20px; font-weight: 700; }
.footer-brand { font-size: 24px !important; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a0aec0; text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { border-top: 1px solid #2d3748; margin-top: 50px; padding-top: 25px; text-align: center; font-size: 13px; color: #718096; }

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES 
   ========================================================================== */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { 
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-view { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) { 
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .slide-content { flex-direction: column-reverse; text-align: center; }
    .slide-image img { max-height: 200px; }
    .filter-bar { flex-direction: column; gap: 15px; }
    .search-form { max-width: 100%; margin-right: 0; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

