/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables for colors */
:root {
    --background: hsl(210, 45%, 98%);
    --foreground: hsl(222, 50%, 12%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222, 50%, 12%);
    --primary: hsl(210, 70%, 50%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-light: hsla(210, 70%, 50%, 0.08);
    --primary-glow: hsla(210, 70%, 50%, 0.15);
    --secondary: hsl(140, 65%, 55%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --secondary-light: hsla(140, 65%, 55%, 0.1);
    --muted: hsl(210, 50%, 96%);
    --muted-foreground: hsl(215, 20%, 42%);
    --accent: hsl(200, 80%, 90%);
    --accent-foreground: hsl(210, 70%, 45%);
    --border: hsl(214, 35%, 90%);
    --radius: 0.75rem;
    --gift-color: hsl(45, 93%, 58%);
}

/* Typography */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Gift icon color */
.gift-icon {
    color: var(--gift-color);
}

/* Layout utilities */
.min-h-screen {
    min-height: 100vh;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Spacing */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-8 {
    padding: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-0 {
    padding: 0;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Grid system */
.grid {
    display: grid;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Colors */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-foreground {
    color: var(--foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-secondary-foreground {
    color: var(--secondary-foreground);
}

.text-yellow-400 {
    color: #facc15;
}

/* Star rating styles */
.fill-current {
    fill: currentColor;
}

.bg-card {
    background-color: var(--card);
}

.bg-muted {
    background-color: var(--muted);
}

.bg-accent {
    background: linear-gradient(135deg, var(--accent) 0%, hsl(200, 85%, 88%) 100%);
}

.bg-primary-light {
    background: radial-gradient(circle, var(--primary-light) 0%, var(--primary-glow) 70%, transparent 100%);
}

.bg-secondary-light {
    background: radial-gradient(circle, var(--secondary-light) 0%, hsla(140, 65%, 55%, 0.15) 70%, transparent 100%);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-yellow-400 {
    background-color: #facc15;
}

.text-black {
    color: #000000;
}

/* Badge positioning */
.badge-center {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Bestseller Badge */
.bestseller-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.4),
        0 3px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
    animation: bestseller-glow 3s ease-in-out infinite;
}

.bestseller-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    animation: bestseller-shine 2.5s infinite;
}

.bestseller-badge i {
    color: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: crown-bounce 2s ease-in-out infinite;
}

@keyframes bestseller-glow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(255, 215, 0, 0.4),
            0 4px 15px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(255, 215, 0, 0.6),
            0 6px 20px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        transform: translateY(-2px);
    }
}

@keyframes bestseller-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes crown-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.bg-foreground {
    background-color: var(--foreground);
}

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

/* Typography sizes */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

@media (min-width: 640px) {
    .sm\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .sm\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .sm\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Text styles */
.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.italic {
    font-style: italic;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.-top-4 {
    top: -1rem;
}

.left-1\/2 {
    left: 50%;
}

.transform {
    transform: var(--tw-transform);
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Border and rounded corners */
.rounded-full {
    border-radius: 9999px;
}

.rounded-xl {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: calc(var(--radius) - 2px);
}

.border-2 {
    border-width: 2px;
}

.border-0 {
    border-width: 0;
}

.border-t {
    border-top-width: 1px;
}

.border-border {
    border-color: var(--border);
}

.border-secondary {
    border-color: var(--secondary);
}

.border-gray-600 {
    border-color: #4b5563;
}

.overflow-hidden {
    overflow: hidden;
}

/* Sizing */
.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.max-w-full {
    max-width: 100%;
}

/* Display utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

/* Spacing utilities */
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

/* Additional flex utilities */
.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* Shadow utilities */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom component styles */
.hero-gradient {
    background: hsl(210, 65%, 95%);
    position: relative;
}


.card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px -2px hsla(210, 70%, 50%, 0.08), 0 2px 8px -2px hsla(210, 70%, 50%, 0.04);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px -4px hsla(210, 70%, 50%, 0.15), 0 8px 16px -4px hsla(210, 70%, 50%, 0.08);
    border-color: hsl(210, 70%, 85%);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(210, 70%, 45%) 50%, hsl(210, 75%, 42%) 100%);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: linear-gradient(135deg, hsl(210, 70%, 48%) 0%, hsl(210, 70%, 42%) 50%, hsl(210, 75%, 38%) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px hsla(210, 70%, 50%, 0.25), 0 6px 12px hsla(210, 70%, 50%, 0.15);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(0);
}

.premium-button {
    background: linear-gradient(135deg, var(--secondary) 0%, hsl(140, 65%, 52%) 50%, hsl(138, 70%, 48%) 100%);
    color: var(--secondary-foreground);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.premium-button:hover {
    background: linear-gradient(135deg, hsl(140, 65%, 55%) 0%, hsl(140, 65%, 50%) 50%, hsl(138, 70%, 45%) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px hsla(140, 65%, 55%, 0.25), 0 6px 12px hsla(140, 65%, 55%, 0.15);
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.premium-button:hover::before {
    left: 100%;
}

.premium-button:active {
    transform: translateY(0);
}

/* Accordion styles */
.accordion-content {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.accordion-content.show {
    max-height: 200px;
}

.accordion-trigger:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Pulse animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Additional text colors */
.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

/* Sales Notification Styles */
.sales-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    z-index: 1000;
    transform: translateX(110%);
    transition: transform 0.4s ease;
}

.sales-notification.show {
    transform: translateX(0);
}

.close-notification {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.close-notification:hover {
    color: var(--foreground);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .sales-notification {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 10px;
        transform: translateY(-110%);
    }
    
    .sales-notification.show {
        transform: translateY(0);
    }
}

/* Transition utilities */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover states */
.hover\:bg-muted:hover {
    background-color: var(--muted);
}

/* Focus states for accessibility */
button:focus,
.accordion-trigger:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Improved button focus styles */
.cta-button:focus,
.premium-button:focus {
    outline: 2px solid var(--primary-foreground);
    outline-offset: 2px;
}
