/* ========== SHOP PAGE STYLES ========== */

/* --- Shop Hero --- */
.shop-hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 10% 4rem;
}

.shop-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.shop-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.9);
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, #0A0A0A 100%);
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.shop-hero-title {
    font-family: var(--header-font);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.shop-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* --- Filter Bar --- */
.shop-section {
    background: var(--bg-color);
    padding: 4rem 8% 6rem;
    min-height: auto;
}

.shop-filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 10px 28px;
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-family: var(--body-font);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-pill:hover {
    background: rgba(212,163,115,0.08);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-pill.active {
    background: rgba(212,163,115,0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- Product Grid --- */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- Product Card --- */
.shop-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.2,0,0.2,1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.shop-card-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
}

.badge-new {
    background: var(--accent-color);
    color: #0A0A0A;
}

.badge-bestseller {
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.badge-bundle {
    background: linear-gradient(135deg, #D4A373, #c48b5c);
    color: #0A0A0A;
}

.shop-card-img {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.shop-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(212,163,115,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.shop-card-img img {
    max-height: 100%;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.2,0,0.2,1);
}

.shop-card:hover .shop-card-img img {
    transform: scale(1.08);
}

.shop-card-body {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.shop-card-name {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
}

.shop-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

.shop-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.shop-card-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}

.shop-card-price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.shop-card-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-add-cart {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: 100px;
    font-family: var(--body-font);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--accent-color);
    color: #0A0A0A;
}

.btn-add-cart.added {
    background: rgba(212,163,115,0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    pointer-events: none;
}

.btn-buy-now {
    padding: 12px 24px;
    background: var(--accent-color);
    color: #0A0A0A;
    border: none;
    border-radius: 100px;
    font-family: var(--body-font);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-buy-now:hover {
    background: #e0b68a;
    transform: scale(1.03);
}

/* --- Cart Toggle Button --- */
.cart-toggle-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.cart-toggle-btn svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.cart-toggle-btn:hover svg {
    color: var(--accent-color);
}

/* --- Nav Right Group (cart + hamburger) --- */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--accent-color);
    color: #0A0A0A;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Cart Overlay --- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 92vw;
    height: 100vh;
    background: #0d0d0d;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-drawer-header h3 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
}

.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.cart-close-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.cart-close-btn:hover svg {
    color: var(--accent-color);
}

/* --- Cart Items --- */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
}

.cart-items-list::-webkit-scrollbar {
    width: 4px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-img img {
    max-height: 55px;
    width: auto;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty-btn {
    background: rgba(255,255,255,0.04);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cart-qty-btn:hover {
    background: rgba(212,163,115,0.15);
    color: var(--accent-color);
}

.cart-qty-value {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
    background: transparent;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    margin-top: 0.4rem;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

/* --- Cart Empty State --- */
.cart-empty-state {
    flex: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    text-align: center;
}

.cart-empty-state.visible {
    display: flex;
}

.cart-empty-state svg {
    width: 60px;
    height: 60px;
    color: rgba(255,255,255,0.15);
    margin-bottom: 0.5rem;
}

.cart-empty-state p {
    font-family: var(--header-font);
    font-size: 1.3rem;
    color: #fff;
}

.cart-empty-state span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Cart Footer --- */
.cart-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: none;
}

.cart-footer.visible {
    display: block;
}

/* --- Coupon --- */
.coupon-section {
    margin-bottom: 1.2rem;
}

.coupon-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.coupon-input-wrapper input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--body-font);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.coupon-input-wrapper input:focus {
    border-color: var(--accent-color);
}

.coupon-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.coupon-input-wrapper button {
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--body-font);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.coupon-input-wrapper button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.coupon-message {
    font-size: 0.78rem;
    margin-top: 0.5rem;
    min-height: 1rem;
}

.coupon-message.success {
    color: #2ecc71;
}

.coupon-message.error {
    color: #e74c3c;
}

/* --- Totals --- */
.cart-totals {
    margin-bottom: 1.2rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.6rem 0;
}

.grand-total-row {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.grand-total-row span:last-child {
    color: var(--accent-color);
}

.discount-row {
    color: #2ecc71;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: #0A0A0A;
    border: none;
    border-radius: 14px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-fast);
}

.checkout-btn:hover {
    background: #e0b68a;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(212,163,115,0.3);
}

.checkout-btn svg {
    width: 18px;
    height: 18px;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.secure-badge svg {
    width: 14px;
    height: 14px;
}

/* --- Quick View Modal --- */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.quick-view-modal.open {
    display: flex;
}

.quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.quick-view-content {
    position: relative;
    z-index: 1;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    padding: 3.5rem;
    max-width: 900px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
}

.quick-view-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.quick-view-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.qv-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.qv-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    padding: 2rem;
}

.qv-image img {
    max-height: 320px;
    width: auto;
}

.qv-details {
    flex: 1;
}

.qv-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.qv-title {
    font-family: var(--header-font);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 400;
}

.qv-price-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qv-price {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

.qv-price-original {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.qv-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.qv-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.qv-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.qv-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.qv-actions {
    display: flex;
    gap: 1rem;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid var(--accent-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 280px;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-text {
    font-size: 0.85rem;
    color: #fff;
}

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

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

/* Active nav link */
.active-link {
    color: var(--accent-color) !important;
}

/* --- Shipping Form Fields --- */
#shipping-form input,
#shipping-form textarea,
#shipping-form select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

#shipping-form input:focus,
#shipping-form textarea:focus,
#shipping-form select:focus {
    border-color: rgba(212,163,115,0.5) !important;
    box-shadow: 0 0 0 3px rgba(212,163,115,0.08);
}

#shipping-form input::placeholder,
#shipping-form textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

#shipping-form select option {
    background: #111;
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .shop-hero-title { font-size: 3.5rem; }
    .shop-section { padding: 3rem 5% 5rem; }
    .qv-layout { flex-direction: column; gap: 2rem; }
    .qv-image { min-height: 220px; width: 100%; }
}

@media (max-width: 640px) {
    .shop-hero-section { min-height: 55vh; padding: 7rem 5% 3rem; }
    .shop-hero-title { font-size: 2.5rem; }
    .shop-hero-subtitle { font-size: 1rem; }
    .shop-product-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .shop-card-img { height: 220px; }
    .shop-card-body { padding: 1.2rem 1.5rem 1.5rem; }
    .shop-card-name { font-size: 1.3rem; }
    .shop-card-actions { flex-direction: column; gap: 0.6rem; }
    .btn-add-cart, .btn-buy-now { width: 100%; text-align: center; }
    .filter-pill { padding: 8px 18px; font-size: 0.75rem; }
    .shop-filter-bar { gap: 0.6rem; margin-bottom: 2.5rem; }
    .cart-drawer { width: 100%; max-width: 100vw; }
    .cart-drawer-header { padding: 1.5rem 1.5rem 1rem; }
    .cart-drawer-header h3 { font-size: 1.4rem; }
    .cart-items-list { padding: 0.8rem 1.5rem; }
    .cart-footer { padding: 1rem 1.5rem 1.5rem; }
    .quick-view-content { padding: 2rem 1.5rem; border-radius: 20px; }
    .qv-title { font-size: 1.6rem; }
    .qv-actions { flex-direction: column; gap: 0.6rem; }
    .qv-actions .btn-add-cart, .qv-actions .btn-buy-now { width: 100%; text-align: center; }
    .toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
    .toast { min-width: auto; }

    /* Shipping modal mobile */
    #shipping-modal .quick-view-content {
        max-width: 100%;
        width: 95%;
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #shipping-modal h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    #shipping-form > div[style*="display: flex"] {
        flex-direction: column !important;
    }

    #shipping-form input,
    #shipping-form textarea,
    #shipping-form select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

@media (max-width: 380px) {
    .shop-hero-title { font-size: 2rem; }
    .shop-section { padding: 2rem 4% 4rem; }
    .shop-card-body { padding: 1rem 1.2rem 1.2rem; }
    .cart-drawer-header { padding: 1.2rem; }
    .cart-items-list { padding: 0.6rem 1.2rem; }
    .cart-footer { padding: 0.8rem 1.2rem 1.2rem; }
}
