/* ==========================================================================
   SAIDANWOOD - STYLESHEET (CLEAN & OPTIMIZED)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Base & Reset
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fcf9f5;
    color: #2c2c2c;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. Top Bar & Navigation
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: #2b1810;
    color: #f1c40f;
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    color: #3e2723;
    text-decoration: none;
}

.logo-icon {
    height: 40px !important;
    width: auto !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.logo span {
    color: #d2691e;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d2691e;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icons a {
    color: #3e2723;
    font-size: 18px;
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #d2691e;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
}

/* --------------------------------------------------------------------------
   3. Hero Banner
   -------------------------------------------------------------------------- */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(20, 10, 5, 0.55), rgba(20, 10, 5, 0.55)), 
                url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: white;
}

.hero-content {
    max-width: 600px;
}

.tagline {
    display: inline-block;
    background-color: rgba(210, 105, 30, 0.3);
    color: #fca311;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(252, 163, 17, 0.5);
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #d2691e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #b8540b;
}

/* --------------------------------------------------------------------------
   4. Section Titles & Room Categories
   -------------------------------------------------------------------------- */
.section-title {
    text-align: center;
    font-size: 30px;
    color: #3e2723;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 35px;
}

.categories-section {
    padding: 60px 8%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 260px;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(20, 10, 5, 0.88));
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
}

.category-info h3 {
    font-size: 20px;
}

.category-info p {
    font-size: 12px;
    color: #ddd;
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   5. Craftsmanship Video Section
   -------------------------------------------------------------------------- */
.craftsmanship-section {
    padding: 60px 8%;
    background-color: #ffffff;
}

.craftsmanship-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.craftsmanship-video {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(62, 39, 35, 0.15);
}

.craftsmanship-video video {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.video-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(43, 24, 16, 0.85);
    color: #f1c40f;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.craftsmanship-content {
    flex: 1;
    min-width: 300px;
}

.craftsmanship-content h2 {
    font-size: 30px;
    color: #3e2723;
    line-height: 1.3;
    margin: 10px 0 15px;
}

.craftsmanship-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quality-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.quality-item i {
    font-size: 22px;
    color: #d2691e;
    background-color: #fdf5ee;
    padding: 12px;
    border-radius: 8px;
}

.quality-item h4 {
    font-size: 15px;
    color: #3e2723;
}

.quality-item p {
    font-size: 13px;
    color: #777;
}

/* --------------------------------------------------------------------------
   6. Search, Category Filters & Dropdowns
   -------------------------------------------------------------------------- */
.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d2691e;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 2px solid #efe6dd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #d2691e;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 8px 18px;
    background-color: #ffffff;
    border: 1px solid #d2691e;
    color: #3e2723;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, 
.filter-btn:hover {
    background-color: #d2691e;
    color: #ffffff;
}

/* Custom Dropdown Styling */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-toggle-btn {
    background: #ffffff;
    color: #3e2723;
    border: 1px solid #d2691e;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dropdown-wrapper:hover .dropdown-toggle-btn {
    background-color: #fdf5ee;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 9999;
    border: 1px solid #efe6dd;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-menu .filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    padding: 10px 18px;
    color: #3e2723;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu .filter-btn:hover,
.dropdown-menu .filter-btn.active {
    background-color: #fdf5ee;
    color: #d2691e;
}

/* --------------------------------------------------------------------------
   7. Products Grid & Cards
   -------------------------------------------------------------------------- */
.products-section {
    padding: 60px 8%;
    background-color: #fcf9f5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #efe6dd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-img-box {
    position: relative;
    height: 210px;
    width: 100%;
    background-color: #f5f5f5;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge.finish {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(62, 39, 35, 0.9);
    color: #f1c40f;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-details h4 {
    font-size: 14px;
    color: #3e2723;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.wood-type {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 12px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #d2691e;
}

.old-price {
    font-size: 13px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.add-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: #3e2723;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-cart-btn:hover {
    background-color: #d2691e;
}

/* --------------------------------------------------------------------------
   8. Shopping Cart Drawer Panel
   -------------------------------------------------------------------------- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background-color: #3e2723;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 18px;
}

.close-cart-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

.cart-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 40px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h5 {
    font-size: 13px;
    color: #3e2723;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 14px;
    color: #d2691e;
    font-weight: 600;
}

.remove-item-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fcf9f5;
}

.total-box {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #3e2723;
    margin-bottom: 15px;
}

.total-price {
    color: #d2691e;
}

.whatsapp-btn {
    width: 100%;
    padding: 12px;
    background-color: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1ebd56;
}

/* --------------------------------------------------------------------------
   9. Custom Order Modal & Floating WhatsApp
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-modal {
    background: #ffffff;
    width: 450px;
    max-width: 90%;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #777;
}

.custom-modal h3 {
    color: #3e2723;
    font-size: 20px;
    margin-bottom: 5px;
}

.custom-modal p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

#customOrderForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#customOrderForm input, 
#customOrderForm select, 
#customOrderForm textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

#customOrderForm input:focus, 
#customOrderForm select:focus, 
#customOrderForm textarea:focus {
    border-color: #d2691e;
}

.submit-btn {
    padding: 12px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.floating-wa {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   10. Footer Styles
   -------------------------------------------------------------------------- */
.footer {
    background-color: #2b1810;
    color: #e0e0e0;
    padding: 60px 8% 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #d2691e;
}

.footer-desc {
    font-size: 13px;
    color: #b0a8a2;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #f1c40f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #d2691e;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 35px;
    height: 2px;
    background-color: #d2691e;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #b0a8a2;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #d2691e;
    padding-left: 4px;
}

.contact-info p {
    font-size: 13px;
    color: #b0a8a2;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    color: #d2691e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* --------------------------------------------------------------------------
   11. Mobile & Tablet Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        height: 32px !important;
    }

    .nav-links {
        display: none;
    }

    .hero {
        height: 60vh;
        padding: 0 5%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .categories-section, 
    .products-section, 
    .craftsmanship-section, 
    .footer {
        padding: 40px 5%;
    }

    .section-title {
        font-size: 24px;
    }

    .craftsmanship-container {
        flex-direction: column;
        gap: 25px;
    }

    .craftsmanship-content h2 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-img-box {
        height: 160px;
    }

    .product-details {
        padding: 12px;
    }

    .product-details h4 {
        font-size: 13px;
    }

    .price {
        font-size: 16px;
    }

    .add-cart-btn {
        padding: 8px;
        font-size: 12px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* Logo Container */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    gap: 6px; /* Saidan, Image aur Wood ke beech ka halka spacing */
    letter-spacing: -0.5px;
}

/* Saidan Color */
.logo .logo-saidan {
    color: #1a1a1a; /* Dark charcoal/black */
}

/* Middle Image Icon */
.logo .logo-icon {
    height: 30px; /* Header ke according height adjust karein */
    width: auto;
    object-fit: contain;
    display: inline-block;
}

/* Wood Color */
.logo .logo-wood {
    color: #d35400; /* Warm Sheesham wood polish shade */
}



/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-btn {
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: #d35400;
    color: #d35400;
}

.page-btn.active {
    background-color: #d35400;
    color: #fff;
    border-color: #d35400;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}