/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #f9f9f9; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Typography & Colors */
:root {
  --primary-color: #e83e8c; /* Vibrant magenta for giftshop feel */
  --primary-hover: #c8236c;
  --accent-color: #f39c12;
  --success-color: #28a745;
  --text-dark: #333;
  --text-light: #fff;
  --gray-bg: #f9f9f9;
  --border-color: #eaeaea;
}

/* Single Row Header Styles */
.header-main { background: #fff; padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.header-container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo a { display: flex; align-items: center; }
.nav-logo img { height: 45px; } /* Adjust based on exact logo proportions */

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 15px; font-weight: 500; color: #333; text-decoration: none; transition: 0.3s; }
.main-nav a:hover { color: var(--accent-color); }

/* Custom Dropdown Wrapper for Category */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-wrapper .dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.nav-dropdown { position: absolute; top: 100%; left: -50px; background: #fff; width: 600px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-top: 2px solid var(--primary-color); display: none; z-index: 1001; }
.nav-dropdown-wrapper:hover .nav-dropdown { display: block; }

.mega-menu-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.mega-column { flex: 1; min-width: 150px; }
.mega-column h3 { font-size: 14px; font-weight: bold; color: var(--primary-color); text-transform: uppercase; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.mega-column h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.mega-column ul { list-style: none; padding: 0; margin: 0; }
.mega-column ul li { margin-bottom: 6px; }
.mega-column ul li a { font-size: 13px; color: #555; font-weight: 400; transition: 0.2s; }
.mega-column ul li a:hover { color: var(--accent-color); padding-left: 5px; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-search-form { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; padding: 2px; }
.header-search-form input { border: none; padding: 5px 10px; outline: none; font-size: 13px; width: 150px; }
.header-search-form button { background: none; border: none; color: var(--text-dark); padding: 5px 10px; cursor: pointer; transition: 0.3s; }
.header-search-form button:hover { color: var(--primary-color); }
.action-btn { font-size: 18px; color: #333; position: relative; transition: 0.3s; }
.action-btn:hover { color: var(--accent-color); }
.cart-btn .cart-badge { position: absolute; top: -10px; right: -10px; background: #f39c12; color: #fff; font-size: 12px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; line-height: 1; padding: 0; margin: 0; box-sizing: border-box; text-align: center; }



.hamburger { display: none; font-size: 24px; cursor: pointer; color: #333; }



/* Buttons */
.btn, .btn-primary, .btn-outline, .btn-warning, .btn-dark { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; border-radius: 3px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: none; text-align: center; text-decoration: none; box-sizing: border-box; }
.btn:active, .btn-primary:active, .btn-outline:active, .btn-warning:active, .btn-dark:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-color); color: var(--text-light); }
.btn-primary:hover { background: #000; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-color); background: transparent; color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--text-light); box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-2px); }
.btn-warning { background: #FF9800; color: #000; box-shadow: 0 4px 6px rgba(255, 152, 0, 0.2); }
.btn-warning:hover { background: #F57C00; box-shadow: 0 6px 15px rgba(255, 152, 0, 0.4); transform: translateY(-2px); }
.btn-dark { background: #1a1a1a; color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.btn-dark:hover { background: #000; box-shadow: 0 6px 15px rgba(0,0,0,0.4); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; color: var(--text-light); padding: 20px; }
.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 18px; margin-bottom: 30px; font-weight: 300; }

/* Generic Sections */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 50px; }

/* Product Sidebar Layout */
.product-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { border: 1px solid var(--border-color); background: #fff; }
.sidebar-widget.p-0 { padding: 0; }
.sidebar-widget:not(.p-0) .widget-title { padding: 15px 20px; border-bottom: 1px solid var(--border-color); margin: 0; font-size: 15px; font-weight: 500; color: #333; }
.sidebar-widget.p-0 .widget-title-wrap { padding: 15px 20px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 10px; }
.widget-badge { background: #f39c12; color: #fff; display: inline-block; padding: 4px 10px; font-size: 14px; font-weight: bold; }

.widget-list { list-style: none; padding: 0 0 10px 0; margin: 0; max-height: 350px; overflow-y: auto; }
.widget-list::-webkit-scrollbar { width: 6px; }
.widget-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.widget-list li a { display: block; padding: 8px 20px; color: #555; font-size: 14px; transition: 0.3s; }
.widget-list li a i { color: #aaa; margin-right: 8px; font-size: 12px; }
.widget-list li a:hover { color: #f39c12; }

.widget-content { padding: 20px; }

/* Custom Form Controls */
.custom-radio, .custom-checkbox { display: flex; align-items: center; margin-bottom: 12px; cursor: pointer; font-size: 13px; color: #555; }
.custom-radio:last-child, .custom-checkbox:last-child { margin-bottom: 0; }
.custom-radio input, .custom-checkbox input { margin-right: 10px; accent-color: #f39c12; width: 14px; height: 14px; }
.custom-radio span.stars { color: #f39c12; font-size: 13px; letter-spacing: 1px; }

.price-inputs { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.price-inputs input { width: 45%; padding: 6px; border: 1px solid var(--border-color); border-radius: 3px; text-align: center; font-size: 13px; outline: none; }
.price-slider { width: 100%; accent-color: #f39c12; cursor: pointer; }

/* Category Grid overrides for Sidebar Layout */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { background: #fff; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; text-align: center; transition: 0.3s; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: #ddd; }
.category-card img { width: 100%; height: 200px; object-fit: cover; }
.category-content { padding: 20px 15px; }
.category-content h3 { font-size: 16px; margin-bottom: 10px; font-weight: 500; color: #333; }
.category-content p { color: #666; margin-bottom: 10px; font-size: 13px; display: none; }
.category-content p.price { display: block; font-weight: bold; color: #555; margin-bottom: 0; }

/* Samples Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; height: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); group; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 40px 20px 20px; color: #fff; transform: translateY(10px); opacity: 0; transition: all 0.4s; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
.gallery-overlay h3 { font-size: 24px; margin-bottom: 5px; }
.gallery-overlay p { font-size: 15px; opacity: 0.8; }

.feature-card { background: #fff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.feature-icon { font-size: 48px; margin-bottom: 20px; }

/* How it Works */
.how-it-works { background: var(--text-light); }
.how-it-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.step-number { font-size: 48px; font-weight: 900; color: var(--accent-color); opacity: 0.5; }
.step-title { font-size: 20px; font-weight: bold; margin: 10px 0; }

/* Customizer (Product Detail) */
.customizer-layout { display: flex; gap: 40px; margin-top: 40px; }
.preview-wrapper { flex: 1; background: #fff; padding: 20px; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.frame-preview { position: relative; width: 100%; max-width: 400px; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; transition: aspect-ratio 0.3s ease; }
.frame-preview img { width: 100%; height: 100%; object-fit: cover; z-index: 1; box-sizing: border-box; }
.frame-preview img.has-mount-and-frame {
    padding: 30px; 
    background: #ffffff; 
    border: 20px solid #1a1a1a; 
    border-image-slice: 212; 
    border-image-repeat: stretch;
}
.preview-hint { position: absolute; z-index: 3; color: #888; font-weight: 500; pointer-events: none; }

.controls-panel { flex: 1; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.control-group { margin-bottom: 25px; }
.control-group label.title { display: block; font-weight: bold; margin-bottom: 10px; font-size: 16px; }

.upload-area { border: 2px dashed var(--border-color); border-radius: 8px; padding: 30px; text-align: center; cursor: pointer; transition: border-color 0.3s; }
.upload-area:hover { border-color: var(--primary-color); }
.upload-label { display: flex; flex-direction: column; align-items: center; cursor: pointer; gap: 10px; }
.upload-icon { font-size: 24px; font-weight: bold; }
.upload-progress { margin-top: 10px; font-size: 14px; color: var(--success-color); }

.size-selector { display: flex; flex-wrap: wrap; gap: 10px; }
.size-option { display: block; flex: 1; min-width: 120px; position: relative; }
.size-option input { position: absolute; opacity: 0; cursor: pointer; }
.size-option span { display: block; text-align: center; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; transition: all 0.2s; cursor: pointer; }
.size-option input:checked ~ span { border-color: var(--primary-color); background: var(--primary-color); color: #fff; }
.size-label { font-weight: bold; margin-bottom: 5px; }
.size-price { font-size: 14px; }

.color-swatches { display: flex; gap: 15px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 2px solid transparent; }
.swatch.active { outline: 3px solid var(--accent-color); outline-offset: 2px; }

.qty-control { display: flex; align-items: center; border: 1px solid var(--border-color); width: max-content; border-radius: 4px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; border: none; background: #f5f5f5; cursor: pointer; font-size: 18px; }
.qty-control input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); height: 40px; font-weight: bold; }

.price-display { font-size: 24px; margin: 20px 0; }
.btn-add-cart { width: 100%; padding: 15px; background: var(--primary-color); color: #fff; font-size: 18px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-add-cart:hover { background: #000; }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: #333; color: #fff; padding: 12px 24px; border-radius: 4px; opacity: 0; transition: all 0.3s; z-index: 10000; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; }

/* Cart and Checkout */
.cart-layout, .checkout-layout { display: flex; gap: 30px; margin-top: 40px; align-items: flex-start; }
.cart-items, .checkout-form-area { flex: 2; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.order-summary-sidebar { flex: 1; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 100px; }

.cart-item { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--border-color); align-items: center; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-item-details { flex: 1; }
.cart-item-title { font-weight: bold; font-size: 16px; margin-bottom: 5px; }
.cart-item-meta { color: #666; font-size: 14px; }
.cart-item-price { font-weight: bold; }
.btn-remove { color: red; background: none; border: none; cursor: pointer; font-size: 14px; margin-top: 5px; }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.summary-total { font-size: 20px; font-weight: bold; border-top: 2px solid var(--border-color); padding-top: 15px; }

/* Footer */
footer { background: var(--primary-color); color: #fff; padding: 60px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; font-size: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; transition: color 0.3s; }
.footer-col ul li a:hover { color: #fff; }
.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input { flex: 1; padding: 10px; border: none; border-radius: 4px 0 0 4px; }
.newsletter-form button { background: var(--accent-color); color: #fff; border: none; padding: 10px 20px; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: bold; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 14px; color: #ccc; }

.wa-float-wrap { position: fixed; bottom: 24px; right: 20px; z-index: 9999; }
.wa-float { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: #25D366; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.1); }

/* Utilities & Basic Grid */
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 24px; }
.p-4 { padding: 24px; }
.alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.col-6, .col-sm-4, .col-md-3, .col-md-4, .col-md-6, .col-md-9, .col-md-12 { padding-left: 15px; padding-right: 15px; width: 100%; }
.col-6 { width: 50%; }
@media (min-width: 576px) {
    .col-sm-4 { width: 33.333333%; }
}
@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
    .col-md-9 { width: 75%; }
    .col-md-12 { width: 100%; }
}

/* Multi-Step Wizard */
.wizard-breadcrumbs { margin-bottom: 30px; text-align: center; }
.wizard-breadcrumbs ul { display: flex; justify-content: center; gap: 0; background: #fff; padding: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.step-nav { padding: 15px 25px; font-weight: bold; color: #666; cursor: pointer; transition: 0.3s; position: relative; border-right: 1px solid #eee; }
.step-nav:last-child { border-right: none; }
.step-nav.active { background: orange; color: #fff; }
.step-nav .check { display: none; }
.step-nav.completed .check { display: inline-block; margin-right: 5px; }
.step-nav.active::after { content: ''; position: absolute; right: -15px; top: 0; border-top: 27px solid transparent; border-bottom: 27px solid transparent; border-left: 15px solid orange; z-index: 2; }
.wizard-step { display: none; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.wizard-step.active { display: block; }
.upload-container { text-align: center; max-width: 600px; margin: 0 auto; }
.transparent-grid { background: repeating-conic-gradient(#eee 0 25%, transparent 0 50%) 0 / 20px 20px; border: 1px solid #ccc; min-height: 400px; display: flex; align-items: center; justify-content: center; padding: 20px; }
#sizePreviewImg { max-width: 100%; max-height: 350px; object-fit: contain; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.size-tabs { display: flex; gap: 5px; }
.tab-btn { padding: 10px 20px; background: #fff; border: 1px solid #333; border-bottom: none; border-radius: 8px 8px 0 0; cursor: pointer; font-weight: bold; margin-bottom: -1px; position: relative; z-index: 1; }
.tab-btn.active { background: orange; color: #000; border-color: orange; z-index: 3; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.size-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.size-box { flex: 1 1 calc(33.333% - 15px); min-width: 120px; display: block; background: #fff; border: 2px solid #fff; padding: 15px; text-align: center; cursor: pointer; font-weight: bold; border-radius: 4px; transition: 0.2s; }
.size-box input { display: none; }
.size-box input:checked ~ span { color: orange; }
.size-box:hover { border-color: orange; }
.frames-grid { margin-top: 20px; }
.frame-card { display: block; cursor: pointer; }
.frame-card-preview { height: 200px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; border: 3px solid transparent; transition: 0.3s; }
.frame-card input:checked ~ .frame-card-preview { border-color: orange; box-shadow: 0 0 15px rgba(255,165,0,0.5); }
.mock-frame img { max-width: 150px; max-height: 150px; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: 0.3s; }
.bg-warning { background-color: #FF9800; }

/* Admin layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: #222; color: #fff; padding: 20px; }
.admin-sidebar h2 { margin-bottom: 30px; }
.admin-sidebar a { display: block; padding: 10px; margin-bottom: 5px; color: #ccc; border-radius: 4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-content { flex: 1; padding: 30px; background: #f5f5f5; }
.admin-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
.table th { background: #f9f9f9; }
.badge { padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; color: #fff; }
.badge-pending { background: #ffc107; color: #000; }
.badge-processing { background: #17a2b8; }
.badge-dispatched { background: #fd7e14; }
.badge-shipped { background: #6f42c1; }
.badge-delivered { background: #28a745; }
.badge-cancelled { background: #dc3545; }
