/* THUBA - Components CSS */

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-beige);
    height: clamp(45px, 5vw, 60px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    flex-wrap: nowrap;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0.05em;
    z-index: 1002;
    display: flex;
    align-items: center;
}

/* Mobile Nav Styles (Default) */
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-snow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-20) var(--space-10);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.nav-links.active {
    transform: translateX(0);
}

.nav-links a {
    font-size: var(--text-lg);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    z-index: 1002;
}

.nav-cart-btn {
    position: relative;
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: 0;
    right: -5px;
    background: var(--color-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: var(--space-2);
}

.hamburger span {
    width: 28px;
    height: 1.5px;
    background: var(--color-dark);
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Desktop Navigation Overrides */
@media (min-width: 1100px) {
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        transform: none;
        box-shadow: none;
        padding: 0;
        gap: clamp(var(--space-2), 1.2vw, var(--space-6));
        flex-wrap: nowrap;
        margin: 0 var(--space-4);
        align-items: center;
    }
    .nav-links a {
        font-size: var(--text-xs);
        white-space: nowrap;
        font-weight: 500;
        letter-spacing: 0.03em;
        padding: var(--space-2) 0;
    }
    .hamburger {
        display: none;
    }
}

@media (min-width: 1280px) {
    .nav-links {
        gap: var(--space-8);
    }
    .nav-links a {
        font-size: var(--text-sm);
    }
}

/* === PRODUCT CARD === */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-offwhite);
    display: block;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

@media (hover: hover) {
    .product-card:hover .img-secondary { opacity: 1; }
    .product-card:hover .img-primary { opacity: 0; }
    .product-card:hover .product-image img { transform: scale(1.05); }
}

.product-actions {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    z-index: 5;
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Friendly Actions */
@media (max-width: 768px) {
    .product-actions {
        position: static;
        transform: none;
        opacity: 1;
        padding: 0 var(--space-4) var(--space-4);
    }
}

.btn-wrap {
    background: var(--color-dark);
    color: #fff;
    width: 100%;
    padding: var(--space-3);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    display: block;
    cursor: pointer;
}

.product-info {
    padding: var(--space-4);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: var(--text-xs);
    color: var(--color-taupe);
    text-transform: uppercase;
    margin-bottom: var(--space-1);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
}

.product-name {
    font-size: var(--text-sm) !important;
    font-family: var(--font-body) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.product-price {
    font-weight: 600;
    color: var(--color-dark);
    font-size: var(--text-sm);
    white-space: nowrap;
}

/* === CART SIDEBAR === */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .cart-sidebar { max-width: 100%; }
}

.cart-sidebar.active { transform: translateX(0); }

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

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

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-offwhite);
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 2px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.cart-item-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-dark);
}

.cart-item-price {
    font-size: var(--text-xs);
    color: var(--color-taupe);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.cart-item-qty button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-beige);
    font-size: 14px;
    min-height: auto;
}

.cart-item-remove {
    margin-top: auto;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-grey);
    text-align: left;
    width: fit-content;
    padding: 0;
    min-height: auto;
}

.cart-footer {
    padding: var(--space-8);
    background: var(--color-snow);
    border-top: 1px solid var(--color-beige);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    font-weight: 600;
    font-size: var(--text-lg);
}

/* === FOOTER === */
.footer {
    background: var(--color-dark);
    color: var(--color-snow);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-brand h3 { color: #fff; font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.footer-brand p { color: var(--color-taupe); font-size: var(--text-sm); max-width: 400px; }

.footer-col h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.footer-col a {
    display: block;
    color: var(--color-taupe);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.footer-newsletter input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-taupe);
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-social { display: flex; gap: var(--space-6); margin-top: var(--space-6); }
.footer-social a { color: var(--color-taupe); font-size: 1.25rem; }
.footer-social a:hover { color: var(--color-gold); }

/* === PAGE HERO === */
.page-hero {
    height: clamp(250px, 40vh, 450px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.page-hero .container { position: relative; z-index: 1; color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-2); }

/* === FORM STYLES === */
.form-group { margin-bottom: var(--space-6); }
.form-group label { display: block; font-size: var(--text-sm); margin-bottom: var(--space-2); color: var(--color-charcoal); font-weight: 500; }
.form-group input, .form-group textarea {
    padding: var(--space-4);
    border: 1px solid var(--color-beige);
    background: #fff;
    transition: all var(--transition-base);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-gold); outline: none; }

