/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 9000;
    transition: background 0.3s ease;
    mix-blend-mode: difference;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--padding-md);
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo-img {
    height: 50px;
    width: auto;
    /* The logo is black on white, but our site is dark theme */
    /* This filter inverts the black to white and makes the white background transparent (if applicable) */
    filter: invert(1);
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
}

.nav-links {
    display: none;
}

.nav-link {
    font-family: var(--font-body);
    text-transform: uppercase;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle .line {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 8999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--padding-md);
    transform: translateY(-100%);
    pointer-events: none;
}

.mobile-menu.active {
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links .menu-item {
    overflow: hidden;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 3rem;
    display: block;
    transform: translateY(100%);
    transition: color 0.3s ease;
}

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

.menu-info {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    opacity: 0;
}

/* --- Slide-in Cart --- */
.cart-panel {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 9500;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 9400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: var(--padding-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    padding: var(--padding-md);
    overflow-y: auto;
}

.cart-footer {
    padding: var(--padding-md);
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.empty-cart-msg {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2rem;
}

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
}

.product-card {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--bg-secondary);
    margin-bottom: 1rem;
}

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

.product-img.hover-img {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
}

.product-card:hover .product-img.main-img {
    opacity: 0;
}
.product-card:hover .product-img.hover-img {
    opacity: 1;
    transform: scale(1.05);
}

.quick-add {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .quick-add {
    transform: translateY(0);
}

.quick-add-btn {
    background: rgba(5,5,5,0.8);
    backdrop-filter: blur(5px);
    border: none;
    border-top: 1px solid var(--border-color);
}

.quick-add-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
}

.product-price {
    font-weight: 500;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
}

.view-all {
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .section-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
}

/* --- Floating WhatsApp Widget --- */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
    color: white;
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    .floating-whatsapp svg {
        width: 25px;
        height: 25px;
    }
}
