/* 
   BBPW Premium Theme 
   Designed by UI/UX Agent
   Palette: Charcoal (#1a1a1a), Gold (#d4af37), Wood (#8b5a2b)
*/

:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-gold-hover: #b5952f;
    --accent-wood: #8b5a2b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: #000;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2000; /* Ensure button is always above menu items */
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('Assets/shop_images/img1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Mobile Hero Section - More Subtle & Minimal */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Allow flexible height */
        min-height: 100vh; /* Ensure full viewport height */
        background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.75)), url('Assets/shop_images/img1.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        padding: 140px 20px 80px; /* Increased top padding to clear header and spacing */
        display: flex;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 5px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 25px;
        line-height: 1.4; /* Better line height */
        font-weight: 700;
    }

    .hero p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 15px;
        line-height: 1.8;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Section Common */
.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.sub-heading {
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Product Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.category-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Blog Cards */
.blog-card {
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.blog-card:hover a {
    color: var(--accent-gold-hover);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.specs-list {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.specs-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.specs-list li::before {
    content: "•";
    color: var(--accent-gold);
    margin-right: 8px;
}

/* About Section */
.bg-off-white {
    background-color: #141414;
}

.features-grid {
    margin-top: 50px;
}

.feature-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--accent-gold);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-info h2 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-details strong {
    color: var(--text-primary);
}

.footer-map iframe {
    border-radius: 8px;
    filter: grayscale(100%) invert(92%) contrast(83%); /* Dark map theme */
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Reduce section padding on mobile */
    .section-padding {
        padding: 40px 0;
    }

    h2 {
        font-size: 2rem;
    }

    /* Horizontal Scroll for Brands (Mobile Only) */
    .features-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 10px 5px 30px 5px; /* Bottom padding for shadow/spacing */
        margin-top: 30px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .features-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .feature-item {
        min-width: 260px; /* Fixed width for cards */
        scroll-snap-align: center;
        margin-bottom: 0; /* Remove stack margin */
        padding: 25px;
    }

    /* Mobile Accordion Styles */
    .card-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .toggle-icon {
        font-size: 1.5rem;
        color: var(--accent-gold);
        font-weight: bold;
        transition: transform 0.3s ease;
    }

    .category-card.active .toggle-icon {
        transform: rotate(45deg); /* Or just change content to '-' via JS */
    }

    .card-details {
        display: none; /* Hidden by default on mobile */
        margin-top: 15px;
        animation: slideDown 0.3s ease-out;
    }

    .category-card.active .card-details {
        display: block;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Desktop Styles for Accordion Elements */
@media (min-width: 769px) {
    .toggle-icon {
        display: none;
    }

    .card-details {
        display: block !important;
    }
}

/* ============================================
   MODERN UI/UX ENHANCEMENTS (2025)
   ============================================ */

/* Trust Signals Bar */
.trust-bar {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.trust-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.trust-stat {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.trust-badge {
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c842 100%);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
}

.trust-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .trust-items {
        gap: 15px;
    }

    .trust-divider {
        display: none;
    }

    .trust-item {
        flex: 1 1 45%;
        min-width: 140px;
    }

    .trust-stat {
        font-size: 1.4rem;
    }

    .rating-value {
        font-size: 1.2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Mobile Sticky CTA Bar */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 12px 15px;
    z-index: 999;
    gap: 10px;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sticky-btn-call {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c842 100%);
    color: #000;
}

.sticky-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
}

.sticky-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
    }

    .whatsapp-float {
        bottom: 80px;
    }

    /* Add padding to footer to account for sticky bar */
    .footer {
        padding-bottom: 100px;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-gold);
    color: #000;
    padding: 10px 20px;
    z-index: 9999;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced Button Styles with Ripple Effect */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c842 100%);
    color: #000;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f5c842 0%, var(--accent-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Enhanced Outline Button */
.btn-outline {
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-outline:hover::before {
    left: 100%;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

/* Glassmorphic Card Effect */
.category-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-card:hover {
    background: rgba(26, 26, 26, 0.9);
}

/* Enhanced Feature Items with Glassmorphism */
.feature-item {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-item:hover {
    background: rgba(26, 26, 26, 0.85);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

/* Hero Section Animation Enhancement */
.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth FAQ Accordion Animation */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-question {
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-gold);
}

.faq-item:hover {
    background: rgba(26, 26, 26, 0.9);
}

/* Product Card CTA Button */
.product-cta-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-cta {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.product-cta-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c842 100%);
    color: #000;
}

.product-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.product-cta-secondary {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.product-cta-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .whatsapp-float {
        animation: none;
    }
}

/* Image Loading Optimization */
img {
    content-visibility: auto;
}

/* Enhanced Table Styles for Mobile */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    table th,
    table td {
        padding: 12px 10px !important;
        font-size: 0.85rem;
    }
}
