/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-dark: #2c2c2c;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;
    --color-gold: #c9a96e;
    --color-gold-light: #e0cba0;
    --color-gold-dark: #b8954a;
    --font-primary: 'Vazir', 'Tahoma', sans-serif;
    --font-size-base: 16px;
    --container-width: 1200px;
    --transition: 0.3s ease;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: 2.5rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.btn--primary:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-gray);
}

.btn--outline:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn--block {
    display: block;
    width: 100%;
}

.btn--sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

.btn-link {
    color: var(--color-gold);
    font-weight: 500;
    transition: color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-link:hover {
    color: var(--color-gold-dark);
}

.btn-link.danger {
    color: #e74c3c;
}

.btn-link.danger:hover {
    color: #c0392b;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-padding {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 2px;
}

.section-link {
    color: var(--color-gray);
    font-size: 0.95rem;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-link:hover {
    color: var(--color-gold);
}

.section-link i {
    font-size: 0.8rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.header__logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header__logo-text {
    color: var(--color-black);
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__menu {
    display: flex;
    gap: 2rem;
}

.header__menu-item a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray);
    transition: color var(--transition);
    position: relative;
}

.header__menu-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition);
}

.header__menu-item a:hover,
.header__menu-item a.active {
    color: var(--color-black);
}

.header__menu-item a:hover::after,
.header__menu-item a.active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.header__search-toggle,
.header__cart {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--color-black);
    cursor: pointer;
    transition: color var(--transition);
    position: relative;
}

.header__search-toggle:hover,
.header__cart:hover {
    color: var(--color-gold);
}

.header__cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header__hamburger span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: var(--color-black);
    transition: all var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-dark);
    color: #ccc;
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__title {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--color-gold);
}

.footer__text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer__links li {
    margin-bottom: 0.6rem;
}

.footer__links a {
    color: #ccc;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--color-gold);
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer__contact i {
    width: 20px;
    color: var(--color-gold);
}

.footer__social {
    display: flex;
    gap: 1.2rem;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    font-size: 1.2rem;
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* ============================================
   PRODUCTS PAGE & DETAIL (shared)
   ============================================ */
.page-header {
    background: var(--color-light-gray);
    padding: 2.5rem 0;
    border-bottom: 1px solid #eee;
}

.page-header__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-gray);
}

.breadcrumb a {
    color: var(--color-gold);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-gold-dark);
}

.breadcrumb__sep {
    color: #ccc;
}

.products-page__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
}

.products-page__sidebar {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    align-self: start;
    position: sticky;
    top: 100px;
}

.filter-widget {
    margin-bottom: 2rem;
}

.filter-widget:last-child {
    margin-bottom: 0;
}

.filter-widget__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.filter-widget__list li {
    margin-bottom: 0.6rem;
}

.filter-widget__list a {
    color: var(--color-gray);
    transition: all var(--transition);
    display: block;
    padding: 0.2rem 0;
}

.filter-widget__list a:hover,
.filter-widget__list a.active {
    color: var(--color-black);
    font-weight: 500;
    padding-right: 0.5rem;
    border-right: 3px solid var(--color-gold);
}

.filter-widget__price-range input[type="range"] {
    width: 100%;
    accent-color: var(--color-gold);
    margin: 0.5rem 0;
}

.price-range__values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.filter-widget__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: transform var(--transition);
    border: 2px solid transparent;
}

.color-circle:hover {
    transform: scale(1.1);
}

.color-circle.active {
    border-color: var(--color-gold);
}

.filter-widget__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.size-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    background: var(--color-light-gray);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.size-tag:hover,
.size-tag.active {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.filter-widget__apply {
    margin-top: 1.5rem;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1rem;
    background: var(--color-light-gray);
    border-radius: 0.8rem;
}

.products-toolbar__count {
    font-weight: 500;
    color: var(--color-gray);
}

.products-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-toolbar__sort select {
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    border: 1px solid #ddd;
    background: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
}

.products-toolbar__view {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-gray);
    transition: all var(--transition);
}

.view-btn.active {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.view-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* ============================================
   PRODUCT CARD - REDESIGNED (Modern & Elegant)
   ============================================ */

.product-card {
    background: var(--color-white);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(201, 169, 110, 0.12);
    border-color: var(--color-gold-light);
}

/* ---- Image Container ---- */
.product-card__image {
    position: relative;
    padding-top: 100%;
    background: #f8f6f3;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card__image img {
    transform: scale(1.06);
}

/* ---- Badges ---- */
.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.9rem;
    border-radius: 2rem;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.product-card__badge--new {
    background: var(--color-gold);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.product-card__badge--sale {
    background: #e67e22;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.25);
}

/* ---- Quick action overlay (on hover) ---- */
.product-card__actions-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.product-card:hover .product-card__actions-overlay {
    bottom: 0;
}

.product-card__quick-btn {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.product-card__quick-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: scale(1.1);
}

.product-card__quick-btn--cart {
    width: auto;
    padding: 0 1.2rem;
    border-radius: 2rem;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ---- Body ---- */
.product-card__body {
    padding: 1.2rem 1rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-card__category {
    font-size: 0.7rem;
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    /* 2 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-card__title {
    color: var(--color-gold-dark);
}

.product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #f39c12;
}

.product-card__rating span {
    color: var(--color-gray);
    font-weight: 400;
    margin-right: 0.2rem;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.4rem;
}

.price--current {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-black);
}

.price--old {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
}

.price--discount {
    font-size: 0.7rem;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.1rem 0.6rem;
    border-radius: 2rem;
}

/* ---- Card footer (for list view) ---- */
.product-card__footer {
    padding: 0 1rem 1.2rem;
    margin-top: auto;
}

/* ============================================
   LIST VIEW ADAPTATION
   ============================================ */
.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.products-grid.list-view .product-card__image {
    flex: 0 0 180px;
    padding-top: 0;
    height: auto;
    min-height: 180px;
}

.products-grid.list-view .product-card__body {
    flex: 1;
    padding: 1.2rem 1.5rem;
    justify-content: center;
}

.products-grid.list-view .product-card__actions-overlay {
    display: none;
}

.products-grid.list-view .product-card__footer {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 1.2rem;
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 768px) {
    .product-card {
        border-radius: 0.8rem;
    }

    .product-card__body {
        padding: 0.8rem 0.6rem 1rem;
    }

    .product-card__title {
        font-size: 0.9rem;
    }

    .price--current {
        font-size: 1rem;
    }

    .product-card__actions-overlay {
        display: none;
        /* hide on mobile, keep clean */
    }

    .products-grid.list-view .product-card__image {
        flex: 0 0 120px;
        min-height: 120px;
    }

    .products-grid.list-view .product-card__body {
        padding: 0.8rem 1rem;
    }

    .products-grid.list-view .product-card__footer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .product-card__badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.7rem;
        top: 8px;
        right: 8px;
    }

    .price--current {
        font-size: 0.9rem;
    }

    .price--old {
        font-size: 0.75rem;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.products-grid.list-view .product-card__image {
    flex: 0 0 160px;
    padding-top: 0;
    height: 160px;
}

.products-grid.list-view .product-card__body {
    flex: 1;
    padding: 0.5rem 0;
}

.products-grid.list-view .product-card__title {
    font-size: 1.2rem;
}

.products-grid.list-view .btn--block {
    width: auto;
    padding: 0.5rem 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 0.5rem;
    background: var(--color-white);
    border: 1px solid #eee;
    color: var(--color-gray);
    font-weight: 500;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.pagination .pagination__link.active {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.pagination .pagination__dots {
    border: none;
    background: transparent;
    color: var(--color-gray);
}

.pagination__prev,
.pagination__next {
    font-size: 0.9rem;
}

/* Product Detail */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--color-light-gray);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.gallery-thumbs .thumb {
    border-radius: 0.8rem;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    opacity: 0.7;
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
    border-color: var(--color-gold);
    opacity: 1;
}

.product-detail__name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-detail__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.product-detail__rating span {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.product-detail__price {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.product-detail__price .price--current {
    font-size: 1.6rem;
    font-weight: 700;
}

.product-detail__price .price--old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.product-detail__price .price--discount {
    background: #e74c3c;
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-detail__desc {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.product-detail__option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.option-label {
    font-weight: 600;
    min-width: 60px;
}

.option-colors,
.option-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.option-colors .color-circle {
    width: 28px;
    height: 28px;
}

.option-sizes .size-tag {
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    background: var(--color-light-gray);
    border-radius: 2rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.option-sizes .size-tag.active,
.option-sizes .size-tag:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.product-detail__actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 1.8rem 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 2.5rem;
    overflow: hidden;
}

.quantity-selector .qty-btn {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--transition);
}

.quantity-selector .qty-btn:hover {
    background: var(--color-light-gray);
}

.quantity-selector input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-family: var(--font-primary);
    outline: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.btn--add-cart {
    padding: 0.9rem 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-gray);
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.2rem;
}

.product-detail__meta i {
    margin-left: 0.4rem;
    color: var(--color-gold);
}

.product-detail__meta a {
    color: var(--color-gold);
    transition: color var(--transition);
}

.product-detail__meta a:hover {
    color: var(--color-gold-dark);
}

.product-detail__share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-detail__share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-light-gray);
    color: var(--color-gray);
    transition: all var(--transition);
}

.product-detail__share a:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.product-tabs {
    margin: 3rem 0 4rem;
    border: 1px solid #eee;
    border-radius: 1.2rem;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--color-light-gray);
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray);
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-black);
}

.tab-btn.active {
    color: var(--color-gold-dark);
    border-bottom-color: var(--color-gold);
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    margin-bottom: 0.8rem;
    color: var(--color-gray);
}

.tab-pane strong {
    color: var(--color-black);
}

.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item strong {
    display: inline-block;
    margin-left: 0.8rem;
}

.review-item span {
    color: var(--color-gold);
}

.review-item p {
    margin-top: 0.3rem;
    color: var(--color-gray);
}

.related-products {
    margin-top: 4rem;
}

.related-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ============================================
   SHOP PAGE SPECIFIC (shared)
   ============================================ */
.shop-hero {
    background: linear-gradient(135deg, var(--color-light-gray) 0%, #f8f4ee 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.shop-hero__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.shop-hero__content {
    flex: 1;
}

.shop-hero__tag {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 0.3rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.shop-hero__title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.shop-hero__desc {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 500px;
    margin-bottom: 1.8rem;
}

.shop-hero__image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.shop-hero__image img {
    max-height: 350px;
    border-radius: 1.5rem;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.flash-sale {
    background: #fdfaf7;
}

.flash-sale__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.flash-sale__badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.flash-sale__timer {
    display: flex;
    gap: 0.8rem;
    font-weight: 600;
}

.timer-block {
    background: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.timer-block span {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    line-height: 1.2;
}

.flash-sale__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

.flash-badge {
    background: #e74c3c !important;
    font-weight: 700;
}

.flash-card .btn--primary {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
}

.flash-card .btn--primary:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.category-rows {
    background: var(--color-white);
}

.category-rows__scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0.2rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.category-rows__scroller::-webkit-scrollbar {
    height: 6px;
}

.category-rows__scroller::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 10px;
}

.category-rows__item {
    flex: 0 0 150px;
    scroll-snap-align: start;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition);
}

.category-rows__item:hover {
    transform: translateY(-6px);
}

.category-rows__item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1.2rem;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}

.category-rows__item:hover img {
    border-color: var(--color-gold);
}

.category-rows__item span {
    display: block;
    margin-top: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.best-sellers {
    background: var(--color-light-gray);
}

.best-sellers__row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.best-card .product-card__badge {
    background: #f39c12;
    font-weight: 600;
}

.festival-banner {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    color: var(--color-white);
}

.festival-banner__inner {
    text-align: center;
    padding: 1.5rem;
}

.festival-banner__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.festival-banner__title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.festival-banner__desc {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.8rem;
}

.festival-banner__desc strong {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

.festival-banner .btn {
    background: var(--color-white);
    color: var(--color-gold-dark);
    border-color: var(--color-white);
}

.festival-banner .btn:hover {
    background: var(--color-light-gray);
    border-color: var(--color-light-gray);
}

.new-arrivals {
    background: var(--color-white);
}

.new-arrivals__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.new-arrival-card {
    background: var(--color-white);
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all var(--transition);
}

.new-arrival-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.new-arrival-card__image {
    position: relative;
    padding-top: 100%;
    background: var(--color-light-gray);
}

.new-arrival-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-arrival-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-gold);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.new-arrival-card__body {
    padding: 1.2rem 1rem;
    text-align: center;
}

.new-arrival-card__body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.new-arrival-card__body p {
    font-weight: 700;
    color: var(--color-gold-dark);
    margin-bottom: 0.8rem;
}

.new-arrival-card__body .btn--outline {
    padding: 0.4rem 1.5rem;
    font-size: 0.9rem;
}

.shop-features {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0;
}

.shop-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.shop-features__item i {
    font-size: 2.2rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.shop-features__item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.shop-features__item p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   CONTACT PAGE SPECIFIC (shared)
   ============================================ */

.contact-info {
    background: var(--color-white);
}

.contact-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.contact-info__card {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.contact-info__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: var(--color-gold-light);
}

.contact-info__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-gold-light);
    color: var(--color-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
    transition: background var(--transition);
}

.contact-info__card:hover .contact-info__icon {
    background: var(--color-gold);
    color: var(--color-white);
}

.contact-info__card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info__card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form-section {
    background: var(--color-light-gray);
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form__desc {
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--color-white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    padding: 0.9rem;
    font-size: 1.05rem;
}

.map-container {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    margin: 1rem 0 1.2rem;
    cursor: pointer;
    border: 1px solid #eee;
    aspect-ratio: 16 / 10;
    background: #e8e4df;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    gap: 0.5rem;
}

.map-overlay i {
    font-size: 3rem;
    color: var(--color-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 1.5rem;
    border-radius: 2rem;
}

.map-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-links .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.social-banner {
    background: linear-gradient(135deg, var(--color-dark), #1a1a1a);
    color: var(--color-white);
    padding: 4rem 0;
}

.social-banner__inner {
    text-align: center;
}

.social-banner__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.social-banner__title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.social-banner__desc {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.social-banner__links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: 1.5rem;
    transition: all var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

.social-icon.instagram:hover {
    background: #e4405f;
}

.social-icon.telegram:hover {
    background: #0088cc;
}

.social-icon.whatsapp:hover {
    background: #25d366;
}

.social-icon.youtube:hover {
    background: #ff0000;
}

.social-icon.twitter:hover {
    background: #1da1f2;
}

.social-icon.linkedin:hover {
    background: #0077b5;
}

.faq-section {
    background: var(--color-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--color-gold-light);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    background: var(--color-white);
    transition: background var(--transition);
}

.faq-item__question:hover {
    background: var(--color-light-gray);
}

.faq-item__question i {
    transition: transform var(--transition);
    color: var(--color-gold);
}

.faq-item.active .faq-item__question i {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--color-gray);
}

.faq-item.active .faq-item__answer {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem;
}

.faq-item__answer p {
    line-height: 1.7;
}

/* ============================================
   ACCOUNT PAGE SPECIFIC (added)
   ============================================ */
.account-dashboard__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
}

.account-sidebar {
    background: var(--color-white);
    border-radius: 1.2rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    align-self: start;
    position: sticky;
    top: 100px;
}

.account-sidebar__profile {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.account-sidebar__avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.account-sidebar__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-gold);
}

.account-sidebar__badge {
    position: absolute;
    bottom: 0;
    right: -5px;
    background: #2ecc71;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.6rem;
    border-radius: 2rem;
    font-weight: 600;
}

.account-sidebar__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.account-sidebar__email {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.account-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.account-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    color: var(--color-gray);
    transition: all var(--transition);
    font-weight: 500;
    position: relative;
}

.account-sidebar__nav a:hover {
    background: var(--color-light-gray);
    color: var(--color-black);
}

.account-sidebar__nav a.active {
    background: var(--color-gold-light);
    color: var(--color-gold-dark);
    font-weight: 600;
}

.account-sidebar__nav a i {
    width: 20px;
    text-align: center;
}

.account-sidebar__nav .badge {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 0.1rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: auto;
}

.account-sidebar__nav .logout {
    margin-top: 0.8rem;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
    color: #e74c3c;
}

.account-sidebar__nav .logout:hover {
    background: #fdf0ed;
    color: #c0392b;
}

.account-main {
    background: var(--color-white);
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    min-height: 500px;
}

.account-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.account-section.active {
    display: block;
}

.account-section__header {
    margin-bottom: 2rem;
}

.account-section__header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.account-section__header p {
    color: var(--color-gray);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1rem;
    background: var(--color-light-gray);
    border-radius: 1rem;
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.stat-card i {
    font-size: 1.8rem;
    color: var(--color-gold);
    width: 40px;
}

.stat-card div {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.orders-table th,
.orders-table td {
    padding: 0.8rem 0.6rem;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.orders-table th {
    font-weight: 600;
    color: var(--color-gray);
    font-size: 0.9rem;
    background: var(--color-light-gray);
}

.orders-table td {
    font-size: 0.95rem;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.wishlist-grid {
    display: grid;
    gap: 1.2rem;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    transition: all var(--transition);
}

.wishlist-item:hover {
    border-color: var(--color-gold-light);
}

.wishlist-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.8rem;
}

.wishlist-item__info {
    flex: 1;
}

.wishlist-item__info h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.wishlist-item__info p {
    font-weight: 700;
    color: var(--color-gold-dark);
    margin-bottom: 0.6rem;
}

.wishlist-item__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.address-card {
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    position: relative;
    transition: all var(--transition);
}

.address-card:hover {
    border-color: var(--color-gold-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.address-card__badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 0.1rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.address-card h4 {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.address-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.address-card__actions {
    display: flex;
    gap: 1rem;
}

.profile-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.profile-form .form-group--full {
    grid-column: 1 / -1;
}

.profile-form label {
    font-weight: 500;
    font-size: 0.95rem;
}

.profile-form input,
.profile-form textarea {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition);
    outline: none;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.profile-divider {
    margin: 2rem 0;
    border-top: 1px solid #eee;
}

.profile-password h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.password-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.password-form .form-group--full {
    grid-column: 1 / -1;
}

.password-form label {
    font-weight: 500;
    font-size: 0.95rem;
}

.password-form input {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition);
    outline: none;
}

.password-form input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

/* ============================================
   AUTH PAGE ADDITIONS (add to existing styles.css)
   ============================================ */

/* These styles are only needed if auth.css is not loaded,
   but they are included here for completeness.
   The main auth styles are in auth.css. */

/* Ensure auth page uses full viewport */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f4ee 0%, #f0ece6 100%);
    padding: 2rem;
}

/* Reusable form group (already in styles.css, but keep for consistency) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--color-white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* Password wrapper (for auth forms) */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-left: 3rem;
}

.password-wrapper .toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
}

.password-wrapper .toggle-password:hover {
    color: var(--color-black);
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS (shared)
   ============================================ */
@media (max-width: 992px) {
    .header__nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--color-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        padding: 2rem 1.5rem;
        overflow-y: auto;
    }

    .header__nav.open {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .header__hamburger {
        display: flex;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .products-page__layout {
        grid-template-columns: 1fr;
    }

    .products-page__sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1.2rem;
    }

    .filter-widget {
        margin-bottom: 0;
    }

    .filter-widget__apply {
        grid-column: 1 / -1;
    }

    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail__gallery {
        max-width: 500px;
        margin: 0 auto;
    }

    .product-detail__name {
        font-size: 1.6rem;
    }

    .shop-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .shop-hero__desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .shop-hero__image img {
        max-height: 250px;
    }

    .shop-hero__title {
        font-size: 2.2rem;
    }

    .flash-sale__header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .flash-sale__timer {
        justify-content: center;
    }

    .festival-banner__title {
        font-size: 2rem;
    }

    .contact-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-hero__desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-hero__title {
        font-size: 2.2rem;
    }

    .contact-hero__image img {
        max-height: 200px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .social-banner__title {
        font-size: 2rem;
    }

    /* Account responsive */
    .account-dashboard__layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .account-sidebar__profile {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 1.2rem;
        text-align: right;
    }

    .account-sidebar__avatar img {
        width: 60px;
        height: 60px;
    }

    .account-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .account-sidebar__nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .account-sidebar__nav .logout {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 2.5rem 0;
    }

    .header__inner {
        height: 60px;
    }

    .header__logo-text {
        font-size: 1.2rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .products-grid.list-view .product-card {
        flex-direction: column;
        align-items: stretch;
    }

    .products-grid.list-view .product-card__image {
        flex: none;
        height: auto;
        padding-top: 100%;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .products-toolbar__sort,
    .products-toolbar__view {
        justify-content: center;
    }

    .page-header__title {
        font-size: 1.5rem;
    }

    .product-detail__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-selector {
        align-self: center;
    }

    .btn--add-cart {
        justify-content: center;
    }

    .tabs-header {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .tabs-content {
        padding: 1.2rem;
    }

    .related-products__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .product-detail__price .price--current {
        font-size: 1.3rem;
    }

    /* Shop responsive */
    .shop-hero__title {
        font-size: 1.8rem;
    }

    .shop-hero__desc {
        font-size: 1rem;
    }

    .flash-sale__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .best-sellers__row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .new-arrivals__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .category-rows__item {
        flex: 0 0 110px;
    }

    .timer-block {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .timer-block span {
        font-size: 1.2rem;
    }

    .shop-features__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .festival-banner__title {
        font-size: 1.6rem;
    }

    .flash-sale__header .section-title {
        font-size: 1.3rem;
    }

    /* Contact responsive */
    .contact-hero__title {
        font-size: 1.8rem;
    }

    .contact-hero__desc {
        font-size: 1rem;
    }

    .contact-info__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .contact-info__card {
        padding: 1.2rem 0.8rem;
    }

    .contact-info__icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .map-links {
        flex-direction: column;
    }

    .map-links .btn {
        min-width: auto;
    }

    .social-banner__links {
        gap: 0.8rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .faq-item__question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-item__answer {
        font-size: 0.9rem;
    }

    /* Account responsive */
    .account-main {
        padding: 1.2rem;
    }

    .account-sidebar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-sidebar__profile {
        flex-direction: column;
        text-align: center;
    }

    .account-sidebar__nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .account-sidebar__nav .badge {
        font-size: 0.65rem;
    }

    .account-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .stat-card {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }

    .orders-table th {
        font-size: 0.75rem;
    }

    .wishlist-item {
        flex-direction: column;
        text-align: center;
    }

    .wishlist-item img {
        width: 120px;
        height: 120px;
    }

    .wishlist-item__actions {
        justify-content: center;
    }

    .profile-form {
        grid-template-columns: 1fr;
    }

    .password-form {
        grid-template-columns: 1fr;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .account-section__header h2 {
        font-size: 1.3rem;
    }

    .account-sidebar__name {
        font-size: 1rem;
    }
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay__container {
    background: var(--color-white);
    border-radius: 2rem;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 700px;
    width: 90%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.search-overlay.active .search-overlay__container {
    transform: translateY(0) scale(1);
}

/* Close button */
.search-overlay__close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-gray);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0.3rem;
    line-height: 1;
}
.search-overlay__close:hover {
    color: var(--color-black);
    transform: rotate(90deg);
}

/* Search box */
.search-overlay__box {
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--color-light-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    transition: border-color var(--transition);
}
.search-overlay__box:focus-within {
    border-color: var(--color-gold);
}

.search-overlay__icon {
    font-size: 1.4rem;
    color: var(--color-gray);
    margin-left: 1rem;
}

.search-overlay__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    font-size: 1.3rem;
    padding: 0.5rem 0;
    color: var(--color-black);
    background: transparent;
}
.search-overlay__input::placeholder {
    color: #bbb;
    font-size: 1.1rem;
}

.search-overlay__submit {
    background: var(--color-gold);
    border: none;
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-overlay__submit:hover {
    background: var(--color-gold-dark);
    transform: scale(1.05);
}

/* Suggestions */
.search-overlay__suggestions {
    margin-top: 1rem;
    max-height: 250px;
    overflow-y: auto;
}
.search-overlay__suggestions::-webkit-scrollbar {
    width: 4px;
}
.search-overlay__suggestions::-webkit-scrollbar-thumb {
    background: var(--color-gold-light);
    border-radius: 10px;
}

.search-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background var(--transition);
}
.search-suggestion:hover {
    background: var(--color-light-gray);
}
.search-suggestion__title {
    font-weight: 500;
    color: var(--color-black);
}
.search-suggestion__category {
    font-size: 0.8rem;
    color: var(--color-gray);
    background: var(--color-light-gray);
    padding: 0.1rem 0.8rem;
    border-radius: 2rem;
}

.search-overlay__hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 1.2rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 576px) {
    .search-overlay__container {
        padding: 1.8rem 1.2rem;
        border-radius: 1.2rem;
        width: 95%;
    }
    .search-overlay__input {
        font-size: 1rem;
    }
    .search-overlay__input::placeholder {
        font-size: 0.95rem;
    }
    .search-overlay__submit {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .search-overlay__close {
        font-size: 1.3rem;
        top: 12px;
        left: 12px;
    }
}

/* ============================================
   MESSAGES / NOTIFICATIONS - MODERN DESIGN
   ============================================ */
.messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.message-item {
    pointer-events: auto;
    background: var(--color-white);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-right: 4px solid #ddd;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
}

/* Slide down animation */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hiding animation */
.message-item.hiding {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    pointer-events: none;
}

/* Colors by type */
.message-success {
    border-right-color: #28a745;
}
.message-success .message-icon {
    color: #28a745;
}

.message-error {
    border-right-color: #dc3545;
}
.message-error .message-icon {
    color: #dc3545;
}

.message-warning {
    border-right-color: #ffc107;
}
.message-warning .message-icon {
    color: #ffc107;
}

.message-info {
    border-right-color: #17a2b8;
}
.message-info .message-icon {
    color: #17a2b8;
}

/* Icon */
.message-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
}

/* Content */
.message-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-black);
    font-weight: 400;
    padding-right: 4px;
}

/* Close button */
.message-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: all 0.2s ease;
    line-height: 1;
    margin-top: 2px;
}

.message-close:hover {
    color: var(--color-black);
    transform: rotate(90deg);
}

/* Progress bar (optional - shows how long until auto-close) */
.message-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
}

.message-item .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    background: currentColor;
    opacity: 0.3;
    width: 100%;
    animation: progressShrink 5s linear forwards;
}

@keyframes progressShrink {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .messages-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        gap: 8px;
    }
    .message-item {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .message-icon {
        font-size: 1.2rem;
    }
    .message-content {
        font-size: 0.85rem;
    }
}