/* BoxDelights Advanced Cake Ordering Site - Complete CSS */

/* CSS Variables for Theming */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* Theme Variations */
[data-theme="dark"] {
    --primary-color: #ff7979;
    --secondary-color: #55efc4;
    --accent-color: #74b9ff;
    --background-color: #1a1a1a;
    --surface-color: #2d2d2d;
    --text-color: #ffffff;
    --text-light: #cccccc;
    --border-color: #404040;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.4);
}

[data-theme="festival"] {
    --primary-color: #fd79a8;
    --secondary-color: #fdcb6e;
    --accent-color: #6c5ce7;
    --background-color: #ffeaa7;
    --surface-color: #fab1a0;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #e17055;
}

[data-theme="birthday"] {
    --primary-color: #fd79a8;
    --secondary-color: #fdcb6e;
    --accent-color: #a29bfe;
    --background-color: #ffeaa7;
    --surface-color: #fab1a0;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #e17055;
}

[data-theme="christmas"] {
    --primary-color: #d63031;
    --secondary-color: #00b894;
    --accent-color: #fdcb6e;
    --background-color: #2d3436;
    --surface-color: #636e72;
    --text-color: #ddd;
    --text-light: #b2bec3;
    --border-color: #74b9ff;
}

[data-theme="valentine"] {
    --primary-color: #e84393;
    --secondary-color: #fd79a8;
    --accent-color: #fdcb6e;
    --background-color: #ffeaa7;
    --surface-color: #fab1a0;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #e17055;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.accessibility-toggle:hover {
    transform: scale(1.1);
}

.accessibility-controls {
    position: absolute;
    top: 60px;
    right: 0;
    width: 250px;
    background: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: none;
}

.accessibility-controls.active {
    display: block;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.control-group button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.control-group button:hover {
    opacity: 0.8;
}

/* Theme Controls */
.theme-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.theme-btn[data-theme="light"] {
    background: #fff;
    color: #8B4513;
}

.theme-btn[data-theme="dark"] {
    background: #333;
    color: #fff;
}

.theme-btn[data-theme="festival"] {
    background: linear-gradient(45deg, #fd79a8, #fdcb6e);
    color: white;
}

.theme-btn:hover {
    transform: scale(1.1);
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.offline-indicator.show {
    display: block;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.confirmation-header i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tracking-info {
    margin: 2rem 0;
}

.order-id {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.progress-step.active i {
    background: var(--primary-color);
}

.progress-step span {
    font-size: 0.8rem;
    text-align: center;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.discount-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.discount-tier {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.tier-discount {
    font-weight: bold;
    color: #28a745;
}

.bulk-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.bulk-benefits li {
    padding: 0.3rem 0;
    color: #666;
}

.delivery-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delivery-option:hover {
    background: #f8f9fa;
}

.delivery-option input[type="radio"] {
    margin: 0;
}

.cost-item.discount {
    color: #28a745;
    font-weight: bold;
}

.quantity-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
}

.bulk-explanation, .design-explanation {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.category-description {
    color: #777;
    font-size: 0.9rem;
    margin: 0.3rem 0 0.8rem 0;
    line-height: 1.3;
}

.cake-preview {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.cake-base {
    font-size: 4rem;
    z-index: 1;
}

.decorations-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.decoration-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1rem;
}

.decoration-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: 50%;
    cursor: grab;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.decoration-item:hover {
    transform: scale(1.1);
}

.decoration-item:active {
    cursor: grabbing;
}

.message-input {
    margin-top: 1rem;
}

.message-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.message-input input,
.message-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    resize: vertical;
}

/* Advanced Customization Styles */
.advanced-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.size-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--background-color);
    min-width: 80px;
}

.size-option:hover,
.size-option.active {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.size-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.size-option span {
    font-size: 0.9rem;
    text-align: center;
}

.size-option .price {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

.layer-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.layer-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.layer-btn:hover,
.layer-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.special-requests textarea {
    margin-bottom: 1rem;
}

.dietary-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.dietary-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.dietary-options input[type="checkbox"] {
    margin: 0;
}

/* Customization Area Layout */
.customization-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

/* Material Options */
.material-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.material-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--background-color);
    text-align: center;
}

.material-item:hover,
.material-item.selected {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.material-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.material-item .price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.customization-options {
    order: 1;
}

.box-preview-section {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Customization tabs */
.customization-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.box-preview-section {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.color-palette {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.color-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-item:hover,
.color-item.selected {
    border-color: var(--text-color);
    transform: scale(1.1);
}

/* Card styles */
.card-styles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.card-style {
    cursor: pointer;
    transition: var(--transition);
}

.card-style:hover {
    transform: scale(1.05);
}

.card-preview {
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    border: 2px solid var(--border-color);
}

.card-preview.classic {
    background: #f8f9fa;
    color: #333;
}

.card-preview.elegant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-preview.fun {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.card-preview.minimal {
    background: white;
    color: #8B4513;
    border: 2px solid #ddd;
}

/* Virtual Assistant */
.virtual-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.assistant-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.assistant-toggle:hover {
    transform: scale(1.1);
}

.assistant-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 400px;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    display: none;
    flex-direction: column;
}

.assistant-chat.active {
    display: flex;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.bot-message {
    background: var(--accent-color);
    color: white;
    margin-right: auto;
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--background-color);
    color: var(--text-color);
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    z-index: 900;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.occasion-selector select {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.nav-icons i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.nav-icons i:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Search Panel */
.search-panel {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--surface-color);
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 800;
}

.search-panel.active {
    transform: translateY(0);
}

.search-panel input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    background: var(--background-color);
    color: var(--text-color);
}

.search-results {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--surface-color);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--surface-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.cart-item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
    margin-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 2rem;
}

.hero-logo {
    position: relative;
    z-index: 2;
}

.hero-logo-image {
    width: 350px;
    height: auto;
    object-fit: contain;
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.cake-showcase {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-cake {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: orbit 10s linear infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: -3.33s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: -6.66s;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Delivery Map Section */
.map-section {
    padding: 4rem 0;
    background: var(--surface-color);
}

/* Address Input Container */
.address-input-container {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow);
}

.address-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.address-suggestion:hover {
    background: var(--surface-color);
}

.address-suggestion:last-child {
    border-bottom: none;
}

.suggestion-main {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
}

.suggestion-sub {
    font-size: 0.85rem;
    color: var(--text-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.delivery-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.delivery-info {
    background: var(--background-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#map {
    height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.delivery-tracking {
    background: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.delivery-van {
    font-size: 3rem;
    margin: 20px 0;
    animation: bounce 2s infinite;
}

.delivery-progress {
    position: relative;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 20px 0;
}

.progress-line {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    width: 0%;
    transition: width 2s ease;
}

.delivery-status {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Box Types Section */
.box-types {
    padding: 4rem 0;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.box-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.box-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.box-card::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.5s ease;
}

.box-card:hover::before {
    left: 100%;
}

.box-image {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color-light), var(--secondary-color-light));
}

.box-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.box-image img:hover {
    transform: scale(1.05);
}

.box-icon-fallback {
    font-size: 4rem;
    color: var(--primary-color);
}

.box-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.box-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.box-card .description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.box-features {
    list-style: none;
    margin-bottom: 2rem;
}

.box-features li {
    padding: 5px 0;
    color: var(--text-light);
}

.box-features li i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.quantity-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.quantity-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: var(--surface-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--surface-color);
    color: var(--text-color);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.bulk-discount-info {
    margin-top: 0.5rem;
    min-height: 24px;
}

.discount-badge {
    background: linear-gradient(135deg, var(--secondary-color), #ff6b6b);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
}

.discount-badge i {
    margin-right: 0.3rem;
}

.next-discount {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
    opacity: 0.8;
}

.total-price {
    margin: 1rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.discounted-price {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Cart Item Styling */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cart-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.cart-item-info p {
    margin: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.customization-note {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.bulk-discount-note {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 1rem;
}

.cart-item-actions .quantity-controls {
    gap: 0.3rem;
}

.cart-item-actions .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

.cart-item-total {
    font-weight: 700;
    color: var(--text-color);
}

.original-cart-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.discounted-cart-price {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

/* Payment Modal Styles */
.payment-modal-content {
    padding: 1rem 0;
}

.qr-section {
    text-align: center;
    margin-bottom: 2rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.qr-placeholder {
    text-align: center;
    color: var(--text-light);
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.qr-code-display {
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1;
}

.qr-pattern {
    margin-bottom: 0.5rem;
}

.qr-row {
    margin: 1px 0;
    letter-spacing: 2px;
}

.qr-info {
    font-size: 0.8rem;
    color: var(--text-color);
    margin: 0.25rem 0;
}

.payment-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.payment-instruction {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.upi-apps {
    margin-top: 1.5rem;
}

.upi-app-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.upi-app {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.payment-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 6px;
    text-align: center;
}

/* Credit Card Form Styles */
.card-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--surface-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-types {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-light);
}

.payment-amount-display {
    background: rgba(var(--secondary-color-rgb), 0.1);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--secondary-color);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.security-info i {
    color: var(--secondary-color);
}

/* Net Banking Styles */
.bank-selection h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bank-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bank-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.bank-option.active {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.bank-option i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.bank-option span {
    font-weight: 500;
    color: var(--text-color);
}

/* Payment Card Active State */
.payment-card.active {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

/* Modal Display Fix */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.box-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Payment Section */
.payment-section {
    padding: 4rem 0;
    background: var(--surface-color);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.payment-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.payment-card:hover,
.payment-card.selected {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.payment-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.payment-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.coupon-section {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.coupon-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.coupon-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    color: var(--text-color);
}

.saved-coupons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.coupon-tag {
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.coupon-tag:hover {
    opacity: 0.8;
}

.order-summary {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.price-breakdown {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.summary-item.total {
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.2rem;
}

.total-amount {
    color: var(--primary-color);
    font-weight: 700;
}

/* Order History Section */
.order-history-section {
    padding: 4rem 0;
}

.history-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.order-history {
    display: grid;
    gap: 2rem;
}

.order-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.order-item:hover {
    box-shadow: var(--shadow-hover);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-id {
    font-weight: 600;
    color: var(--primary-color);
}

.order-status {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.pending {
    background: #fff3cd;
    color: #8B4513;
}

.empty-history {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 3rem;
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer p {
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: var(--surface-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

/* Tour Overlay */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.tour-overlay.active {
    display: flex;
}

.tour-step {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

.tour-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tour-content p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.tour-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100%); }
    to { transform: translateX(-50%) translateY(0); }
}

@keyframes modalSlideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .delivery-form {
        grid-template-columns: 1fr;
    }
    
    .customization-area {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 1rem;
    }
    
    @media (max-width: 768px) {
        .customization-area {
            grid-template-columns: 1fr;
        }
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .assistant-chat {
        width: 90%;
        right: 5%;
    }
}