@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --background: 0 0% 100%;
    --foreground: 220 13% 18%;
    
    /* Primary Yellow Palette */
    --primary: 45 93% 47%;
    --primary-foreground: 220 13% 18%;
    --primary-light: 48 96% 89%;
    --primary-dark: 42 87% 55%;
    
    /* Gray Palette */
    --secondary: 220 13% 91%;
    --secondary-foreground: 220 13% 18%;
    --muted: 220 13% 91%;
    --muted-foreground: 220 9% 46%;
    
    /* Accent Colors */
    --accent: 47 84% 57%;
    --accent-foreground: 220 13% 18%;
    
    /* Utility Colors */
    --card: 0 0% 100%;
    --card-foreground: 220 13% 18%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 45 93% 47%;
    
    /* Animation Variables */
    --animate-duration: 0.3s;
    --animate-easing: cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius: 0.75rem;
}

/* Base Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.from-primary-light {
    --tw-gradient-from: hsl(var(--primary-light));
    --tw-gradient-to: hsla(var(--primary-light), 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* Promo Section */
#promo {
    position: relative;
    height: 600px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.promo-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.promo-slide.active {
    opacity: 1;
}

/* Introduction Section */
#home {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    margin: 0;
    overflow: hidden;
}

#home .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Product Sections */
.product-section {
    padding: 3rem 0;
    margin: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: hsl(var(--muted-foreground));
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dots button.active {
    background-color: hsl(var(--primary));
    transform: scale(1.2);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #promo {
        height: 400px;
    }
    
    #home {
        min-height: auto;
        padding: 4rem 0;
    }
}

/* Remove all default spacing for sections */
section {
    margin: 0;
    padding: 0;
}

/* Force remove any unwanted margins */
.m-0 {
    margin: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

/* Fix for Tailwind container */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}
/* Profile Side Pane */
#profile-side-pane {
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
}

#profile-side-pane h2 {
    color: #495057;
}

#profile-side-pane .form-label {
    color: #495057;
    font-weight: 500;
}

#profile-side-pane .form-control {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    color: #495057;
}

#profile-side-pane .btn-primary {
    background-color: #facc15;
    border-color: #facc15;
    color: #212529;
    font-weight: 500;
}

#profile-side-pane .btn-primary:hover {
    background-color: #f9b208;
    border-color: #f9b208;
}
/* Profile Page Styles */
.profile-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #facc15;
    padding-bottom: 1rem;
}

.profile-logo {
    width: 80px;
    height: auto;
    margin-right: 1.5rem;
}

.profile-header h1 {
    font-size: 2.5rem;
    color: #343a40;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-section {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-section h2 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.user-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.25rem;
    color: #495057;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f1f3f5;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5);
}

.btn-profile {
    background-color: #facc15;
    color: #212529;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-profile:hover {
    background-color: #f9b208;
}

.link-profile {
    color: #007bff;
    text-decoration: none;
}

.link-profile:hover {
    text-decoration: underline;
}

.feedback-message {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.address-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.address-actions {
    margin-top: 1rem;
}

.link-profile-delete {
    color: #dc3545;
    text-decoration: none;
    margin-left: 1rem;
}

.link-profile-delete:hover {
    text-decoration: underline;
}
#profile-popup {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
    z-index: 1000;
    color: #333;
}

.profile-popup-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.profile-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.profile-popup-body {
    padding: 1rem;
}

.profile-popup-body p {
    margin: 0 0 0.5rem;
}

.profile-popup-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-profile-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-profile-secondary:hover {
    background-color: #e5e7eb;
}
/* Checkout Page Enhancements */
.container {
    max-width: 1200px;
}

#checkout-form .address-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#checkout-form .address-card:hover {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--primary-light) / 0.2);
}

#checkout-form input[type="radio"]:checked + label {
    font-weight: bold;
}

.order-summary-bill {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}
/* Checkout Page Redesign */
.address-card.selected {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--primary-light) / 0.3);
}

.btn-profile {
    display: inline-block;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-profile:hover {
    background-color: hsl(var(--primary-dark));
}
/* Checkout Page Redesign - Final */
.order-summary-table th, .order-summary-table td {
    padding: 0.75rem;
}

.order-summary-table th {
    border-bottom: 2px solid hsl(var(--primary));
}

.order-summary-table td {
    border-bottom: 1px solid #e5e7eb;
}

.order-summary-table th:not(:first-child),
.order-summary-table td:not(:first-child) {
    border-left: 2px solid hsl(var(--primary));
}

.address-card.selected {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--primary-light) / 0.3);
    box-shadow: 0 0 15px hsl(var(--primary) / 0.5);
}
.btn-profile-danger {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    color: #fff;
    background-color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-profile-danger:hover {
    background-color: #c82333;
}
.pin-input {
    display: flex;
    justify-content: space-between;
    width: 220px; /* Adjust width as needed */
    margin: 20px auto;
}

.pin-input input {
    width: 30px;
    height: 40px;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 5px;
    -webkit-text-security: disc; /* Mask the input */
    -moz-webkit-text-security: disc;
    -moz-text-security: disc;
}

.pin-input input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}