/* ==========================================================================
   ZARAGOZA PERFUMES - MASTER CSS
   Refactored & Unified - All Pages Compatible
   ========================================================================== */

/* ----------------------------------------------
   ROOT VARIABLES
   ---------------------------------------------- */
:root {
    --transition-artistic: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------
   RESET & BASE
   ---------------------------------------------- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--page);
    color: var(--theme1);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .luxury-font {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* ----------------------------------------------
   TYPOGRAPHY & UTILITIES
   ---------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-artistic);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-padding {
    padding: 120px 0;
}

/* ----------------------------------------------
   ANIMATIONS (Zaragoza Namespaced)
   ---------------------------------------------- */
@keyframes zaragozaFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes zaragozaSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes zaragozaFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes zaragozaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fade-in {
    animation: zaragozaFadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: zaragozaSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: zaragozaFloat 6s ease-in-out infinite;
}

.card-hover {
    transition: var(--transition-artistic);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Glass Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(174,129,130,0.1) 0%, rgba(174,129,130,0) 70%);
    pointer-events: none;
}

.decorative-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--theme3), transparent);
    height: 1px;
    width: 100px;
}

/* ----------------------------------------------
   BUTTONS & FORMS (Shared)
   ---------------------------------------------- */
.btn-luxury {
    background: var(--theme1);
    color: var(--theme2);
    padding: 18px 40px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    border: 1px solid var(--theme1);
    transition: var(--transition-artistic);
    font-weight: 600;
}

.btn-luxury:hover {
    background: transparent;
    color: var(--theme1);
}

.btn-login, .btn-register {
    background: var(--theme1);
    color: var(--theme2);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-artistic);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-login:hover, .btn-register:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(40, 40, 40, 0.2);
}

.btn-login:active, .btn-register:active {
    transform: translateY(0);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-field {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid transparent;
    padding: 14px 18px;
    border-radius: 12px;
    outline: none;
    transition: var(--transition-artistic);
    font-size: 0.9rem;
    color: var(--theme1);
}

.input-field:focus {
    background: white;
    border-color: var(--theme3);
    box-shadow: 0 0 0 3px rgba(174, 129, 130, 0.1);
}

.input-field.error {
    border-color: #dc2626;
    background: #fef2f2;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-bar.weak { width: 25%; background: #dc2626; }
.strength-bar.medium { width: 50%; background: #f59e0b; }
.strength-bar.strong { width: 75%; background: #10b981; }
.strength-bar.very-strong { width: 100%; background: #059669; }

.strength-text {
    font-size: 0.7rem;
    margin-top: 4px;
    color: #6c757d;
}

/* Custom Checkbox */
.custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--theme3);
}

/* ----------------------------------------------
   NAVBAR
   ---------------------------------------------- */
.navbar {
    background: transparent;
    padding: 25px 0;
    transition: var(--transition-artistic);
    z-index: 1050;
}

.navbar.scrolled {
    background: var(--glass-light);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(174, 129, 130, 0.08);
}

.navbar-brand img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: var(--theme1) !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin: 0 15px;
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--theme3);
    transition: var(--transition-artistic);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-count {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
}

/* Mobile Scroll Fix */
.nav-scrollable {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-scrollable::-webkit-scrollbar {
    display: none;
}

.nav-scrollable {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ----------------------------------------------
   FOOTER (Unified)
   ---------------------------------------------- */
footer {
    background-color: #1a1a1a;
    color: #d1d1d1;
    padding: 80px 0 40px;
    margin-top: 0;
}

.footer-brand-img {
    height: 50px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-link {
    color: #888;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    transition: var(--transition-artistic);
}

.footer-link:hover {
    color: var(--theme3);
    transform: translateX(5px);
}

/* ----------------------------------------------
   HOME / HERO / COLLECTIONS
   ---------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 242, 242, 1) 0%, rgba(174, 129, 130, 0.05) 100%);
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--theme1);
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--theme3);
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(174, 129, 130, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-perfume-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: zaragozaFloat 6s ease-in-out infinite;
}

.collection-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #fff;
    transition: var(--transition-artistic);
    user-select: none;
    cursor: pointer;
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.collection-card:hover .collection-img {
    transform: scale(1.08);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 242, 242, 0.95) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

/* Notes Section */
.notes-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--page), #fff);
}

.note-card {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 100px 100px 0 0;
    margin-bottom: 20px;
    transition: var(--transition-artistic);
}

.note-icon {
    font-size: 2rem;
    color: var(--theme3);
    margin-bottom: 20px;
    display: block;
}

.note-level {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
}

/* Store Section */
.store-section {
    padding: 80px 0;
    background: var(--page);
}

/* ----------------------------------------------
   SHOP / PRODUCT LISTING
   ---------------------------------------------- */
.shop-header {
    padding: 140px 0 60px;
    background: linear-gradient(to bottom, #fff, var(--page));
}

.filter-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme3);
    margin-bottom: 20px;
    font-weight: 700;
    display: block;
}

.filter-group {
    margin-bottom: 35px;
}

.filter-option {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: var(--transition-artistic);
    user-select: none;
}

.filter-option:hover, .filter-option.active {
    color: var(--theme3);
    padding-left: 5px;
}

.filter-option input {
    display: none;
}

/* Product Grid Card */
.product-grid-card {
    background: #fff;
    padding: 0;
    border: none;
    transition: var(--transition-artistic);
    position: relative;
    margin-bottom: 30px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    aspect-ratio: 1/1.2;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 1.2s ease;
}

.product-grid-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px 15px;
    text-align: center;
}

.product-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme3);
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--theme1);
}

.product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
}

.product-price s {
    color: #de8181;
    margin: 0 3px;
    font-size: 11px;
}

.btn-add-cart {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    background: var(--theme1);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-artistic);
}

.product-grid-card:hover .btn-add-cart {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Product Status Badge */
.product-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--theme3);
    color: white;
    padding: 5px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

/* Wishlist Overlay */
.wishlist-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wishlist-overlay i {
    font-size: 1rem;
    color: var(--theme1);
    transition: all 0.3s ease;
}

.wishlist-overlay.active i {
    color: var(--theme3);
}

.wishlist-overlay:hover {
    transform: scale(1.1);
}

/* Active Filters Indicator */
.active-filters-indicator {
    background: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid #eee;
}

.filter-badge {
    background: var(--page);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--theme1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.filter-badge-remove {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #999;
    transition: color 0.2s;
}

.filter-badge-remove:hover {
    color: var(--theme3);
}

.clear-all-filters {
    background: none;
    border: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme3);
    margin-left: auto;
    text-decoration: underline;
    cursor: pointer;
}

/* Sort Dropdown */
.sort-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.sort-select {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 0;
    color: var(--theme1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    list-style: none;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    background: #fff;
    color: var(--theme1);
    text-decoration: none;
    border: 1px solid #eee;
    cursor: pointer;
    display: inline-block;
}

.pagination a:hover {
    background: var(--theme1);
    color: #fff;
}

.pagination .active span {
    background: var(--theme1);
    color: #fff;
}

/* Related Section */
.related-section {
    padding: 100px 0;
    background: #fff;
}

/* ----------------------------------------------
   PRODUCT DETAILS PAGE
   ---------------------------------------------- */
.product-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.main-image-container {
    background: #fff;
    aspect-ratio: 1/1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.main-image-container img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 1s ease;
}

.thumbnail-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition-artistic);
}

.thumb-item.active {
    border-color: var(--theme3);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-sticky {
    position: sticky;
    top: 120px;
}

.product-category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--theme3);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.wishlist-btn {
    background: transparent;
    border: 1px solid var(--theme3);
    color: var(--theme3);
    padding: 8px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-artistic);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.wishlist-btn i {
    font-size: 1.1rem;
}

.wishlist-btn.active {
    background: var(--theme3);
    color: white;
}

.product-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--theme1);
    margin-bottom: 30px;
}

.price-before {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.scent-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 500px;
}

.size-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.size-btn {
    border: 1px solid #ddd;
    background: transparent;
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-artistic);
    cursor: pointer;
}

.size-btn.active, .size-btn:hover {
    border-color: var(--theme1);
    background: var(--theme1);
    color: #fff;
}

.size-selector .OutOfStock {
    text-decoration: line-through;
    color: #b46060;
    border-color: #b46060;
    background: #ffe0e0;
    pointer-events: none;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    height: 45px;
    width: fit-content;
}

/* Shared qty-btn styles - product details specific */
.product-section .qty-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--theme1);
    font-size: 1.2rem;
    transition: var(--transition-artistic);
}

.product-section .qty-btn:hover {
    background: #f9f9f9;
}

#mainQty {
    width: 50px;
    border: none;
    text-align: center;
    background: transparent;
    font-weight: 600;
    color: var(--theme1);
    pointer-events: none;
}

.btn-add-main {
    background: var(--theme1);
    color: #fff;
    border: none;
    padding: 20px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-artistic);
    margin-bottom: 20px;
}

.btn-add-main:hover {
    background: var(--theme3);
    letter-spacing: 5px;
}

.btn-add-main:disabled {
    background: #ccc;
    cursor: not-allowed;
    letter-spacing: 3px;
}

/* ----------------------------------------------
   WISHLIST PAGE
   ---------------------------------------------- */
.wishlist-section {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.wishlist-grid-item {
    margin-bottom: 30px;
}

.wishlist-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-artistic);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.wishlist-card:hover {
    box-shadow: 0 15px 40px rgba(174, 129, 130, 0.1);
    transform: translateY(-5px);
}

.remove-wish-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.remove-wish-btn:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.remove-wish-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

.remove-wish-btn.loading i {
    animation: zaragozaSpin 0.8s linear infinite;
}

.wish-img-wrapper {
    aspect-ratio: 1/1.2;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
    text-decoration: none;
}

.wish-img-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 1s ease;
}

.wishlist-card:hover .wish-img-wrapper img {
    transform: scale(1.05);
}

.wish-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wish-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme3);
    margin-bottom: 8px;
    display: block;
}

.wish-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.wish-price {
    font-weight: 700;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-move-to-bag {
    margin-top: auto;
    background: var(--theme1);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition-artistic);
}

.btn-move-to-bag:hover {
    background: var(--theme3);
}

.empty-state {
    padding: 100px 0;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    color: var(--theme3);
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

/* ----------------------------------------------
   CART / CHECKOUT PAGE
   ---------------------------------------------- */
.cart-section {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.cart-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: var(--transition-artistic);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item:hover {
    border-color: rgba(174, 129, 130, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.cart-item-img {
    width: 120px;
    height: 150px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 30px;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
    min-width: 180px;
}

.item-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme3);
    margin-bottom: 5px;
    display: block;
}

.item-name {
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 500;
    cursor: pointer;
}

.item-variant {
    font-size: 0.8rem;
    color: #888;
    margin: 8px 0;
}

.item-variant span {
    display: inline-block;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    margin-right: 8px;
    margin-bottom: 5px;
}

/* Cart quantity controls */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    width: fit-content;
    margin-top: 15px;
    background: white;
}

.cart-item .qty-btn {
    background: transparent;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-item .qty-btn:hover {
    background: #f9f9f9;
}

.qty-val {
    width: 50px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    outline: none;
    padding: 5px 0;
    background: transparent;
}

.item-price-col {
    text-align: right;
    min-width: 140px;
    flex-shrink: 0;
}

.item-price {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ff2a2a;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: 0.3s;
    cursor: pointer;
    font-weight: 700;
}

.remove-btn:hover {
    color: var(--theme3);
}

.summary-card {
    background: #fff;
    padding: 30px 25px;
    position: sticky;
    top: 120px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .summary-card {
        padding: 40px;
    }
}

.summary-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

@media (min-width: 768px) {
    .summary-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

.static-error {
    background: #fee;
    border-left: 3px solid #dc2626;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: none;
}

.static-error.show {
    display: block;
}

.static-error p {
    margin: 0;
    font-size: 0.8rem;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.static-success {
    background: #e6f7e6;
    border-left: 3px solid #28a745;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: none;
}

.static-success.show {
    display: block;
}

.static-success p {
    margin: 0;
    font-size: 0.8rem;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-summary-details {
    margin: 20px 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .summary-line {
        font-size: 0.9rem;
        padding: 12px 0;
    }
}

.summary-line.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--theme1);
    font-weight: 700;
    font-size: 1rem;
}

.summary-line.total .summary-value {
    font-size: 1.1rem;
    color: var(--theme3);
}

@media (min-width: 768px) {
    .summary-line.total .summary-value {
        font-size: 1.3rem;
    }
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: 600;
}

.after-discount-line {
    display: none;
    background: #fef9e6;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
}

.after-discount-line.show {
    display: flex;
}

.payment-methods {
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.payment-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid #f5f5f5;
}

@media (min-width: 768px) {
    .payment-option {
        padding: 12px 20px;
        gap: 15px;
    }
}

.payment-option:last-child {
    border-bottom: none;
}

.payment-option:hover {
    background: #fafafa;
}

.payment-option input {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.payment-option label {
    margin: 0;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    flex: 1;
}

@media (min-width: 768px) {
    .payment-option label {
        font-size: 0.85rem;
    }
}

.payment-icon {
    width: 28px;
    font-size: 18px;
    color: var(--theme3);
    text-align: center;
}

.card-credits-section {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 12px;
    display: none;
}

.card-credits-section.active {
    display: block;
    animation: zaragozaFadeIn 0.3s ease;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Credit card item - scoped to cart/checkout */
.cart-section .custom-card-item {
    background: white;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.cart-section .custom-card-item:hover {
    border-color: var(--theme3);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cart-section .custom-card-item.selected {
    border-color: var(--theme3);
    background: linear-gradient(135deg, #fff 0%, #fef9f5 100%);
}

.cart-section .custom-card-item.selected::before {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--theme3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.card-icon {
    width: 50px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.card-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--theme1);
}

.card-info p {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
}

.add-card-btn {
    background: transparent;
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-card-btn:hover {
    border-color: var(--theme3);
    background: #fef9f5;
}

.reward-item {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.toggle-switch {
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.toggle-switch.active {
    background: var(--theme3);
}

.toggle-switch div {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: 0.3s;
}

.toggle-switch.active div {
    left: 25px;
}

.coupon-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.coupon-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 60px;
    font-size: 0.8rem;
}

.apply-coupon {
    background: var(--theme1);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.apply-coupon:hover {
    background: var(--theme3);
}

.location-btn {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 40px;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin: 15px 0;
    font-size: 0.8rem;
}

.location-btn:hover {
    background: #f0f0f0;
    border-color: var(--theme3);
}

.selected-location-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    padding-left: 32px;
    word-break: break-word;
}

.selected-location-card {
    background: #f9f9f9;
    border-left: 3px solid var(--theme3);
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
}

.place-order-btn {
    background: var(--theme1);
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition-artistic);
    cursor: pointer;
    border-radius: 4px;
}

.place-order-btn:hover {
    background: var(--theme3);
    letter-spacing: 4px;
}

.service-validation {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: none;
    font-size: 0.8rem;
}

.service-validation.show {
    display: block;
}

/* ----------------------------------------------
   AUTH PAGES (Login/Register)
   ---------------------------------------------- */
.auth-gradient {
    background: linear-gradient(135deg, var(--page) 0%, #fce7e7 100%);
}

.AuthCard {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.AuthTitle {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.AlertBox {
    display: none;
}

.ErrorMessage {
    display: none;
}

/* Logo styling */
.logo-image {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ----------------------------------------------
   PROFILE / ACCOUNT PAGE
   ---------------------------------------------- */
.profile-header {
    background: linear-gradient(135deg, var(--page) 0%, #fdf8f8 100%);
    padding-top: 120px;
    padding-bottom: 60px;
    margin-top: -20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: var(--theme1);
    color: var(--theme2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
    border: 4px solid white;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(174, 129, 130, 0.1);
}

.profile-nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: #6c757d;
}

.profile-nav-btn i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.profile-nav-btn:hover {
    background: #f8f9fa;
    color: var(--theme1);
}

.profile-nav-btn.active {
    background: var(--theme1);
    color: white;
}

.profile-nav-btn.text-red:hover {
    background: #fee;
    color: #dc3545;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(174, 129, 130, 0.1);
    min-height: 500px;
}

/* Profile Tabs - FIX: scoped to profile card, no global .tab-content conflict */
.profile-card > .tab-content {
    display: block;
}

.profile-card > .tab-content.d-none {
    display: none !important;
}

/* Order Items */
.order-item {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    background: #f8f9fa;
}

@media (min-width: 768px) {
    .order-img {
        width: 90px;
        height: 90px;
    }
}

.order-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-badge.delivered {
    background: #d4edda;
    color: #155724;
}

.order-badge.transit {
    background: #fff3cd;
    color: #856404;
}

.order-badge.processing {
    background: #cce5ff;
    color: #004085;
}

.order-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: #f8f9fa;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--theme3);
    background: white;
}

.form-input.disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
}

/* Address Card */
.address-card {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px solid rgba(174, 129, 130, 0.2);
    transition: all 0.3s ease;
}

.address-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--theme1);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.btn-primary-custom {
    background: var(--theme1);
    color: var(--theme2);
    padding: 12px 32px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid #dee2e6;
    padding: 8px 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--theme1);
    border-color: var(--theme1);
    color: white;
}

/* Credit Cards Custom - Profile Page */
.MyCardsGH {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profile credit card items - different from cart checkout */
.profile-card .custom-card-item {
    background: linear-gradient(135deg, #ffffff 0%, #fef9f5 100%);
    border: 2px solid rgba(174, 129, 130, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-card .custom-card-item:hover {
    border-color: var(--theme3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-icon-wrapper {
    width: 70px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-icon-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.card-info-wrapper {
    flex: 1;
    min-width: 180px;
}

.card-holder-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme1);
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.card-type {
    font-size: 0.7rem;
    color: var(--theme3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-number {
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 8px;
}

.card-expiry {
    font-size: 0.7rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-expiry i {
    font-size: 0.7rem;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.delete-card-btn {
    background: transparent;
    border: 1px solid #ff2a2a;
    color: #ff2a2a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-card-btn:hover {
    background: #ff2a2a;
    color: white;
    transform: scale(1.05);
}

.set-default-card-btn {
    background: transparent;
    border: 1px solid var(--theme3);
    color: var(--theme3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.set-default-card-btn:hover {
    background: var(--theme3);
    color: white;
}

.default-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    background: var(--accent);
    color: var(--theme1);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-new-card-item {
    background: #f8f9fa;
    border: 2px dashed rgba(174, 129, 130, 0.3);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-new-card-item:hover {
    border-color: var(--theme3);
    background: #fef9f5;
    transform: translateY(-2px);
}

.add-new-card-item i {
    font-size: 1.5rem;
    color: var(--theme3);
}

.add-new-card-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme1);
}

.AddCardFormGH {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 20px;
    display: none;
}

.AddCardFormGH.show {
    display: block;
    animation: zaragozaFadeIn 0.4s ease-out;
}

.paymentWidgets {
    width: 100%;
    min-height: 400px;
}

.empty-cards {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.empty-cards i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-cards h6 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.empty-cards p {
    font-size: 0.8rem;
    color: #999;
}

.card-loading {
    text-align: center;
    padding: 40px;
}

.card-loading i {
    font-size: 2rem;
    color: var(--theme3);
    animation: zaragozaSpin 1s linear infinite;
}

/* Order Details Modal */
.order-details-modal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.order-details-modal .modal-header {
    background: var(--theme1);
    color: white;
    padding: 20px 30px;
    border-bottom: none;
}

.order-details-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.order-details-modal .modal-body {
    padding: 30px;
}

.order-details-modal .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.order-info-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.order-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 5px;
}

.order-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme1);
}

.order-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-product-item:last-child {
    border-bottom: none;
}

.order-product-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    background: #f8f9fa;
}

.order-product-details {
    flex: 1;
}

.order-product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-product-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.order-product-price {
    font-weight: 600;
    color: var(--theme3);
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.timeline-step:not(:last-child):before {
    content: '';
    position: absolute;
    left: 12px;
    top: 30px;
    width: 2px;
    height: calc(100% - 15px);
    background: #dee2e6;
}

.timeline-icon {
    width: 24px;
    height: 24px;
    background: #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 1;
}

.timeline-icon.completed {
    background: var(--theme3);
    color: white;
}

.timeline-icon.current {
    background: var(--theme1);
    color: white;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.timeline-date {
    font-size: 0.7rem;
    color: #6c757d;
}

/* ----------------------------------------------
   LOCATION MODAL (Scoped tabs)
   ---------------------------------------------- */
.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.location-modal.active {
    display: flex;
}

.location-modal .modal-content {
    background: #fff;
    width: 95%;
    max-width: 900px;
    border-radius: 16px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .location-modal .modal-content {
        padding: 24px;
    }
}

.location-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.location-modal .modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.location-modal .modal-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 500;
    transition: 0.3s;
}

.location-modal .modal-tab.active {
    color: var(--theme3);
    border-bottom: 2px solid var(--theme3);
}

/* Scoped tab content for location modal only */
.location-modal .tab-content {
    display: none;
}

.location-modal .tab-content.active {
    display: block;
}

.my-locations-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
}

.my-location-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-location-item:hover {
    background: #fef9f5;
}

.my-location-item.selected {
    background: #fef9f5;
    border-left: 3px solid var(--theme3);
}

.location-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.location-info p {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
}

.search-box {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 40px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.search-box:focus {
    outline: none;
    border-color: var(--theme3);
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

@media (min-width: 768px) {
    .map-container {
        height: 400px;
    }
}

#map {
    width: 100%;
    height: 100%;
}

.current-location-btn {
    background: #f0f0f0;
    border: 1px solid #eee;
    border-radius: 40px;
    padding: 8px 12px;
    width: 100%;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
}

.current-location-btn:hover {
    background: #e0e0e0;
    border-color: var(--theme3);
}

.location-instructions {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    resize: vertical;
}

.add-location-btn {
    background: var(--theme1);
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 40px;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.done-location-btn {
    background: var(--theme1);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-artistic);
    font-size: 0.85rem;
    margin-top: 15px;
}

.done-location-btn:hover {
    background: var(--theme3);
}

/* ----------------------------------------------
   TOAST NOTIFICATIONS
   ---------------------------------------------- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-message {
    min-width: 280px;
    max-width: 380px;
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid;
}

.toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-message.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-message.success {
    border-left-color: #10b981;
}
.toast-message.success .toast-icon {
    color: #10b981;
}

.toast-message.error {
    border-left-color: #ef4444;
}
.toast-message.error .toast-icon {
    color: #ef4444;
}

.toast-message.info {
    border-left-color: var(--theme3);
}
.toast-message.info .toast-icon {
    color: var(--theme3);
}

.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--theme1);
}

.toast-text {
    font-size: 0.8rem;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--theme1);
}

/* Legacy notification toast */
#notification-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--theme1);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 2000;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notification-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ----------------------------------------------
   RESPONSIVE RULES
   ---------------------------------------------- */
@media (max-width: 991px) {
    .hero {
        text-align: center;
        min-height: auto;
        padding: 140px 0 80px;
    }
    .hero-image-container {
        margin-top: 60px;
    }
    .section-padding {
        padding: 80px 0;
    }
    .filter-section {
        padding: 20px;
        background: #fff;
        margin-bottom: 40px;
        border-radius: 15px;
    }
    .shop-header {
        padding: 100px 0 40px;
    }
    .cart-section {
        padding-top: 100px;
    }
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    .cart-item-img {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .quantity-control {
        margin: 15px auto;
    }
    .item-price-col {
        text-align: center;
        margin-top: 15px;
    }
    .summary-card {
        margin-top: 40px;
        position: static;
    }
    .profile-card {
        padding: 20px;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .order-details-modal .modal-body {
        padding: 20px;
    }
    .order-product-item {
        flex-direction: column;
        text-align: center;
    }
    .timeline-step {
        flex-direction: column;
        text-align: center;
    }
    .timeline-step:not(:last-child):before {
        display: none;
    }
    .profile-card .custom-card-item {
        flex-direction: column;
        text-align: center;
    }
    .card-actions {
        justify-content: center;
        margin-top: 10px;
    }
    .default-badge {
        top: -8px;
        right: 10px;
        font-size: 0.55rem;
        padding: 3px 10px;
    }
}

@media (max-width: 768px) {
    .wishlist-section {
        padding-top: 100px;
    }
    .wish-name {
        font-size: 1rem;
    }
    .auth-card {
        margin: 16px;
        border-radius: 24px;
    }
    .logo-image {
        max-height: 60px;
    }
}

@media (max-width: 576px) {
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    .toast-message {
        max-width: none;
        width: auto;
    }
    .order-info-section {
        text-align: center;
    }
    .card-icon-wrapper {
        width: 50px;
        height: 40px;
    }
    .card-holder-name {
        font-size: 0.85rem;
    }
    .card-number {
        font-size: 0.75rem;
    }
}

/* Scrollbar fix for auth gradient */
.auth-gradient {
    background: linear-gradient(135deg, var(--page) 0%, #fce7e7 100%);
}

/* Additional safe overrides */

.product-card {
    background: #fff;
    padding: 40px;
    margin: 15px;
    text-align: center;
    transition: var(--transition-artistic);
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(174, 129, 130, 0.08);
}

.product-card .text-muted {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-thumb {
    width: 100%;
    height: 320px;
    object-fit: contain;
    margin-bottom: 25px;
}

.collection-card, .product-item {
    user-select: none;
    cursor: pointer;
}

.input-focus:focus {
    box-shadow: 0 0 0 2px rgba(174, 129, 130, 0.2);
    border-color: var(--theme3);
    background: white;
}

.navbar-nav
{
    background: var(--page);
}

.navbar.scrolled .navbar-nav
{
    background: var(--glass-light);
}
