/* Amazon Taste Theme Styles */

/* Dynamic Theme Colors with Safe Amazon Brand Defaults */
:root {
    --primary-color: #131921;
    --secondary-color: #232F3E;
    --accent-color: #FFD814;
    --primary-rgb: 19, 25, 33;
    --secondary-rgb: 35, 47, 62;
    --accent-rgb: 255, 216, 20;
    --livewire-progress-bar-color: #febd69;
}

#livewire-progress {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(90deg, #febd69, #FFA41C) !important;
    height: 2px !important;
    box-shadow: 0 0 10px #FFA41C !important;
    z-index: 9999999 !important;
    transition: width 200ms ease-out, opacity 300ms ease-out !important;
    pointer-events: none !important;
}

@layer utilities {
    .glass-effect {
        background: rgba(19, 25, 33, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .glass-light {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    .glow-cyan {
        box-shadow: 0 0 25px rgba(var(--accent-rgb, 255, 216, 20), 0.3);
    }
    .glow-purple {
        box-shadow: 0 0 25px rgba(var(--primary-rgb, 19, 25, 33), 0.3);
    }
    .glow-hover:hover {
        box-shadow: 0 10px 30px -5px rgba(255, 164, 28, 0.4);
    }
    .text-gradient {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .text-gradient-cyan {
        background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .hero-product-title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word;
        line-height: 1.25 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[x-cloak] {
    display: none !important;
}

/* Global Dark Mode Styling Overrides */
html.dark {
    color-scheme: dark;
}
html.dark body {
    background-color: #0b0f19 !important;
    color: #f1f5f9 !important;
}
html.dark header {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border-color: #1e293b !important;
}
html.dark .bg-white:not(.stepper-btn):not(.stepper-pill):not(.card-action-btn):not(.card-cart-btn),
html.dark .bg-white\/95,
html.dark .bg-white\/90,
html.dark .bg-white\/80 {
    background-color: #111827 !important;
    color: #f3f4f6 !important;
    border-color: #1f2937 !important;
}
html.dark .bg-\[\#f8fafc\]:not(.stepper-pill), 
html.dark .bg-slate-50:not(.stepper-pill), 
html.dark .bg-slate-100:not(.stepper-pill) {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
html.dark .border-slate-100, 
html.dark .border-slate-200, 
html.dark .border-slate-200\/80,
html.dark .border-slate-200\/90 {
    border-color: #1f2937 !important;
}
html.dark .text-slate-900:not(.stepper-count), 
html.dark .text-slate-800, 
html.dark .text-slate-700 {
    color: #f8fafc !important;
}
html.dark .text-slate-600, 
html.dark .text-slate-500 {
    color: #cbd5e1 !important;
}
html.dark .text-slate-400 {
    color: #94a3b8 !important;
}
html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-100:hover {
    background-color: #1f2937 !important;
}
html.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Dedicated Stepper High Contrast Styling for Light & Dark Mode */
.stepper-pill {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.stepper-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    background-color: #ffffff;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
    box-sizing: border-box !important;
}
.stepper-btn:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

.stepper-count {
    color: #0f172a;
}

html.dark .stepper-pill {
    background-color: #1e293b !important;
    border: 1.5px solid var(--primary-color) !important;
    box-shadow: 0 0 14px rgba(var(--primary-rgb, 19, 25, 33), 0.3) !important;
}

html.dark .stepper-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--secondary-color) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
}
html.dark .stepper-btn:hover {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

html.dark .stepper-count {
    color: #ffffff !important;
}

/* Card Action Buttons (Wishlist, Quick View, Compare) Light & Dark Mode */
.card-action-btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

html.dark .card-action-btn {
    background-color: #1e293b !important;
    border: 1.5px solid #334155 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

html.dark .card-action-btn:hover {
    background-color: #334155 !important;
    border-color: var(--primary-color) !important;
}

/* Wishlist Icon */
.action-btn-wishlist {
    color: #64748b;
}
.action-btn-wishlist:hover {
    color: #ec4899;
}
html.dark .action-btn-wishlist {
    color: #f472b6 !important;
}
html.dark .action-btn-wishlist.active-wishlist {
    background-color: #831843 !important;
    color: #f472b6 !important;
    border-color: #db2777 !important;
}

/* Quick View Icon */
.action-btn-quickview {
    color: #64748b;
}
.action-btn-quickview:hover {
    color: var(--primary-color);
}
html.dark .action-btn-quickview {
    color: var(--accent-color) !important;
}

/* Compare Icon */
.action-btn-compare {
    color: #64748b;
}
.action-btn-compare:hover {
    color: var(--primary-color);
}
.action-btn-compare.active-compare {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 19, 25, 33), 0.35) !important;
}
html.dark .action-btn-compare {
    color: var(--accent-color) !important;
}
html.dark .action-btn-compare.active-compare {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 14px rgba(var(--secondary-rgb, 35, 47, 62), 0.5) !important;
}

/* Round Cart Icon Button on Product Cards */
.card-cart-btn {
    background-color: #f1f5f9;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
}
.card-cart-btn:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

html.dark .card-cart-btn {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: 1px solid var(--secondary-color) !important;
    box-shadow: 0 0 12px rgba(var(--primary-rgb, 19, 25, 33), 0.4) !important;
}
html.dark .card-cart-btn:hover {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

html.dark .card-cart-btn.in-cart {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 14px rgba(var(--secondary-rgb, 35, 47, 62), 0.5) !important;
}

/* Hero Slider Directional Transitions */
.slide-right .hero-enter-start { opacity: 0; transform: translateX(2rem); }
.slide-right .hero-leave-end { opacity: 0; transform: translateX(-2rem); }

.slide-left .hero-enter-start { opacity: 0; transform: translateX(-2rem); }
.slide-left .hero-leave-end { opacity: 0; transform: translateX(2rem); }

.hero-enter-active { transition: all 500ms ease-out; }
.hero-leave-active { transition: all 300ms ease-in; position: absolute; inset: 0; }
.hero-enter-end, .hero-leave-start { opacity: 1; transform: translateX(0); }

/* Dedicated Media Print Rules for Clean Receipt PDF Generation */
@media print {
    body * {
        visibility: hidden !important;
    }
    #printable-receipt-modal, 
    #printable-receipt-modal * {
        visibility: visible !important;
    }
    #printable-receipt-modal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: none !important;
        border: none !important;
    }
    #printable-receipt-modal button {
        display: none !important;
    }
}

/* Policy Rich Content Typography */
.policy-content {
    line-height: 1.8;
    font-size: 0.9375rem;
    color: inherit;
}

.policy-content > * + * {
    margin-top: 1.25rem;
}

.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #0f172a;
}

.dark .policy-content h1,
.dark .policy-content h2,
.dark .policy-content h3,
.dark .policy-content h4 {
    color: #f8fafc;
}

.policy-content h1 {
    font-size: 1.875rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.policy-content h2 {
    font-size: 1.375rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.policy-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content h4 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.75;
    color: #334155;
}

.dark .policy-content p {
    color: #cbd5e1;
}

.policy-content ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.policy-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.policy-content li {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    line-height: 1.6;
    color: #334155;
}

.dark .policy-content li {
    color: #cbd5e1;
}

.policy-content li::marker {
    color: var(--primary-color);
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s;
}

.policy-content a:hover {
    color: var(--secondary-color);
}

.dark .policy-content a {
    color: var(--accent-color);
}

.dark .policy-content a:hover {
    color: var(--secondary-color);
}

.policy-content strong,
.policy-content b {
    font-weight: 800;
    color: #0f172a;
}

.dark .policy-content strong,
.dark .policy-content b {
    color: #f8fafc;
}

.policy-content em,
.policy-content i {
    font-style: italic;
}

.policy-content u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: rgba(var(--primary-rgb, 19, 25, 33), 0.05);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #475569;
}

.dark .policy-content blockquote {
    background-color: rgba(var(--primary-rgb, 19, 25, 33), 0.12);
    color: #cbd5e1;
}

.policy-content hr {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin: 2rem 0;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.policy-content th {
    background-color: rgba(148, 163, 184, 0.1);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #0f172a;
}

.dark .policy-content th {
    color: #f8fafc;
    background-color: rgba(30, 41, 59, 0.5);
}

.policy-content td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}


