/* ═══════════════════════════════════════════════════════════════
   AKVRIX UNIFIED COMPONENT DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════
   Single source of truth for all shared component styles across 
   every page: headers, buttons, cards, forms, summaries, grids.
   This eliminates per-page inline style duplication.
   ═══════════════════════════════════════════════════════════════ */

/* ─── LAYOUT CONTAINER ─── */
.akv-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED PAGE HEADER — CLEAN ARCHITECTURAL BANNER
   Used on: shop, cart, checkout, orders, wishlist, account,
   about, contact, faq, all policy pages, 404
   ═══════════════════════════════════════════════════════════════ */
.akv-page-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 36px 0 28px;
    position: relative;
    overflow: hidden;
}
/* Subtle diagonal pattern for visual richness */
.akv-page-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 280px;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.015) 8px,
        rgba(0, 0, 0, 0.015) 9px
    );
    pointer-events: none;
}
.akv-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.akv-page-kicker {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: #71717a;
    text-transform: uppercase;
}
.akv-page-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0;
    line-height: 1.1;
}
.akv-breadcrumb {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #888888;
}
.akv-breadcrumb a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}
.akv-breadcrumb a:hover {
    color: #ff0828;
}
.akv-breadcrumb span {
    color: #ff0828;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.akv-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000000;
    color: #ffffff;
    border: 1.5px solid #000000;
    padding: 14px 24px;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.akv-btn-solid:hover {
    background: #ff0828;
    border-color: #ff0828;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 8, 40, 0.25);
}
.akv-btn-solid.full {
    display: block;
    text-align: center;
    width: 100%;
}

.akv-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #000000;
    background: transparent;
    padding: 12px 24px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.akv-btn-outline:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED FORM CARD & INPUT SYSTEM
   Used on: checkout, account, contact
   ═══════════════════════════════════════════════════════════════ */
.akv-form-card {
    background: #fafafa;
    border: 1.5px solid #000000;
    padding: 28px;
    transition: box-shadow 0.3s;
}
.akv-form-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.akv-form-card-title {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #000000;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED SUMMARY CARD
   Used on: cart, checkout, order_detail
   ═══════════════════════════════════════════════════════════════ */
.akv-cart-summary-card {
    background: #fafafa;
    border: 1.5px solid #000000;
    padding: 30px;
}
.akv-summary-title {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #000000;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
}
.akv-summary-line {
    display: flex;
    justify-content: space-between;
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #444444;
    margin-bottom: 12px;
}
.akv-summary-line span:last-child {
    color: #000000;
    font-weight: 900;
}
.akv-summary-line.discount {
    color: #16a34a;
}
.akv-summary-line.discount span:last-child {
    color: #16a34a;
}
.akv-summary-total-line {
    display: flex;
    justify-content: space-between;
    font-family: 'Archivo', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #000000;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid #000000;
}

.akv-cart-security-badge {
    text-align: center;
    font-family: 'Archivo', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #71717a;
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED EMPTY STATE
   Used on: cart, wishlist, my_orders
   ═══════════════════════════════════════════════════════════════ */
.akv-empty-catalog,
.akv-empty-cart-box {
    text-align: center;
    padding: 100px 20px;
}
.akv-empty-catalog i,
.akv-empty-cart-box i {
    font-size: 54px;
    color: #000000;
    margin-bottom: 16px;
    display: inline-block;
}
.akv-empty-catalog h2,
.akv-empty-cart-box h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #000000;
    margin: 0 0 8px;
}
.akv-empty-catalog p,
.akv-empty-cart-box p {
    color: #71717a;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED CATALOG GRID & PRODUCT CARDS
   Used on: shop, wishlist
   ═══════════════════════════════════════════════════════════════ */
.akv-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.akv-catalog-card {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
.akv-catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.akv-catalog-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4f4f5;
}
.akv-card-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.akv-catalog-card:hover .akv-card-img-main {
    transform: scale(1.06);
}
.akv-card-badge-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000000;
    color: #ffffff;
    font-family: 'Archivo', sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    padding: 4px 10px;
    z-index: 2;
}
.akv-card-badge-chip.limited {
    background: #ff0828;
}
.akv-card-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s, background 0.2s;
}
.akv-card-heart-btn:hover {
    transform: scale(1.15);
    background: #ff0828;
    color: #ffffff;
}
.akv-card-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.akv-catalog-card:hover .akv-card-quick-add {
    transform: translateY(0);
}
.akv-card-add-action {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #000000;
    color: #ffffff;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.akv-card-add-action:hover {
    background: #ff0828;
}
.akv-catalog-info {
    padding: 16px;
}
.akv-catalog-title {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #000000;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.akv-catalog-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.akv-price-now {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #000000;
}
.akv-price-was {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    color: #999999;
    text-decoration: line-through;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-TRIGGERED ENTRY ANIMATIONS
   Elements with .akv-animate-in will fade-slide up on scroll
   ═══════════════════════════════════════════════════════════════ */
@keyframes akvSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.akv-animate-in {
    opacity: 0;
    transform: translateY(30px);
}
.akv-animate-in.visible {
    animation: akvSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays for grid children */
.akv-animate-in.visible:nth-child(1) { animation-delay: 0s; }
.akv-animate-in.visible:nth-child(2) { animation-delay: 0.08s; }
.akv-animate-in.visible:nth-child(3) { animation-delay: 0.16s; }
.akv-animate-in.visible:nth-child(4) { animation-delay: 0.24s; }
.akv-animate-in.visible:nth-child(5) { animation-delay: 0.32s; }
.akv-animate-in.visible:nth-child(6) { animation-delay: 0.40s; }

/* ═══════════════════════════════════════════════════════════════
   SECTION DIVIDER & DECORATIVE ELEMENTS
   ═══════════════════════════════════════════════════════════════ */
.akv-section-divider {
    width: 60px;
    height: 3px;
    background: #000000;
    margin: 40px auto;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED FORM FIELDS
   Used on: account, contact, checkout
   ═══════════════════════════════════════════════════════════════ */
.akv-acc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.akv-acc-field {
    position: relative;
}
.akv-acc-field label {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #000000;
    margin-bottom: 6px;
}
.akv-acc-field input,
.akv-acc-field textarea {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #000000;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.akv-acc-field input:focus,
.akv-acc-field textarea:focus {
    border-color: #ff0828;
    box-shadow: 0 0 0 3px rgba(255, 8, 40, 0.08);
}

/* Input Grid (checkout) */
.akv-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.akv-input-grid .full {
    grid-column: 1 / -1;
}
.akv-input-grid label {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #000000;
    margin-bottom: 6px;
}
.akv-input-grid input,
.akv-input-grid select {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #000000;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.akv-input-grid input:focus,
.akv-input-grid select:focus {
    border-color: #ff0828;
    box-shadow: 0 0 0 3px rgba(255, 8, 40, 0.08);
}

/* Account Nav Bar */
.akv-account-nav-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.akv-acc-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1.5px solid #000000;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #000000;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.akv-acc-nav-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.akv-acc-nav-link.logout {
    border-color: #ff0828;
    color: #ff0828;
}
.akv-acc-nav-link.logout:hover {
    background: #ff0828;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM MICRO-INTERACTIONS & ADVANCED EFFECTS
   ═══════════════════════════════════════════════════════════════ */

/* Animated gradient accent line on page headers */
.akv-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #000000 0%, #ff0828 40%, #000000 80%);
    background-size: 200% 100%;
    animation: akvGradientSlide 4s ease-in-out infinite;
}
@keyframes akvGradientSlide {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}

/* Card shimmer loading effect */
@keyframes akvShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.akv-catalog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 3;
}
.akv-catalog-card:hover::after {
    animation: akvShimmer 0.8s ease-out;
}
.akv-catalog-card {
    position: relative;
}

/* Badge pulse animation for LIMITED items */
@keyframes akvBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 8, 40, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255, 8, 40, 0); }
}
.akv-card-badge-chip.limited {
    animation: akvBadgePulse 2s ease-in-out infinite;
}

/* Form card lift animation */
.akv-form-card {
    position: relative;
}
.akv-form-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0828;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.akv-form-card:hover::before {
    width: 100%;
}

/* Summary card glow on hover */
.akv-cart-summary-card {
    position: relative;
    transition: box-shadow 0.35s, transform 0.35s;
}
.akv-cart-summary-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Button ripple effect */
.akv-btn-solid::after,
.akv-btn-outline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, opacity 0.4s;
    opacity: 0;
}
.akv-btn-solid,
.akv-btn-outline {
    position: relative;
    overflow: hidden;
}
.akv-btn-solid:active::after,
.akv-btn-outline:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

/* Premium icon rotation on hover for studio info */
.akv-studio-info-row i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
.akv-studio-info-row:hover i {
    transform: rotate(-8deg) scale(1.15);
    color: #ff0828;
}

/* FAQ accordion smooth effect */
.akv-faq-item {
    transition: border-color 0.3s, box-shadow 0.3s;
}
.akv-faq-item:hover {
    border-color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Policy card typography animation */
.akv-policy-card h2 {
    position: relative;
    display: inline-block;
}
.akv-policy-card h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #ff0828;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.akv-policy-card h2:hover::after {
    width: 100%;
}

/* Enhanced empty state icon bounce */
@keyframes akvIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.akv-empty-catalog i,
.akv-empty-cart-box i {
    animation: akvIconFloat 3s ease-in-out infinite;
}

/* Smooth page load fade-in for main content */
@keyframes akvPageLoad {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.akv-page-header + section,
.akv-page-header + div {
    animation: akvPageLoad 0.5s ease-out;
}

/* Color swatch hover effect on product cards */
.akv-color-swatch {
    transition: transform 0.2s, box-shadow 0.2s;
}
.akv-color-swatch:hover {
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Footer link hover underline animation */
.akv-footer a {
    position: relative;
}
.akv-footer a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000000;
    transition: width 0.3s ease;
}
.akv-footer a:hover::after {
    width: 100%;
}

/* Notification toast slide-in enhancement */
@keyframes akvToastIn {
    from { transform: translateX(100%) scale(0.8); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes akvToastOut {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(100%) scale(0.8); opacity: 0; }
}

/* Scroll indicator hint */
@keyframes akvScrollHint {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .akv-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .akv-page-header::before {
        display: none;
    }
    .akv-input-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .akv-catalog-grid {
        grid-template-columns: 1fr;
    }
    .akv-page-title {
        font-size: 28px;
    }
    .akv-account-nav-bar {
        flex-direction: column;
    }
}

/* Prefer reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
