/* ========================================================================
    Premium Dark & Gold Color Override
   Place AFTER eStore main.css to override the blue theme
   ======================================================================== */

/* ── Global Color Variables ── */
:root {
    --background-color: #faf8f5;
    --default-color: #2c2c2c;
    --heading-color: #1a1a1a;
    --accent-color: #8B6914;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
}

:root {
    --nav-color: #1a1a1a;
    --nav-hover-color: #8B6914;
    --nav-mobile-background-color: #1a1a1a;
    --nav-dropdown-background-color: #ffffff;
    --nav-dropdown-color: #2c2c2c;
    --nav-dropdown-hover-color: #8B6914;
}

.light-background {
    --background-color: #f5f0e8;
    --surface-color: #ffffff;
}

.dark-background {
    --background-color: #1a1a1a;
    --default-color: #e8dcc8;
    --heading-color: #f5f0e8;
    --accent-color: #C9A96E;
    --surface-color: #2c2420;
    --contrast-color: #ffffff;
}

/* ── Typography ── */
:root {
    --heading-font: "Playfair Display", serif;
    --default-font: "Inter", system-ui, -apple-system, sans-serif;
    --nav-font: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
}

/* ── Header & Top Bar ── */
.header .top-bar {
    background: #1a1a1a;
    color: #e8dcc8;
    border-bottom: 1px solid #333;
}

.header .top-bar a {
    color: #C9A96E;
}

.header .top-bar a:hover {
    color: #e8c97a;
}

.header .top-bar .announcement-slider {
    color: #e8dcc8;
}

.header .main-header {
    background: #fff;
    border-bottom: 1px solid #e8dcc8;
}

.header .header-actions .header-action-btn {
    color: #1a1a1a;
}

.header .header-actions .header-action-btn:hover {
    color: #8B6914;
}

.header .header-actions .badge {
    background: #8B6914 !important;
    color: #fff !important;
}

.header .header-nav {
    background: #1a1a1a;
    border-bottom: 2px solid #8B6914;
}

.header .navmenu a {
    color: #e8dcc8 !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.header .navmenu a:hover,
.header .navmenu a.active {
    color: #C9A96E !important;
}

.header .navmenu .dropdown ul {
    background: #1a1a1a;
    border: 1px solid #333;
}

.header .navmenu .dropdown ul a {
    color: #ccc !important;
}

.header .navmenu .dropdown ul a:hover {
    color: #C9A96E !important;
    background: rgba(201, 169, 110, 0.08);
}

/* ── Account Dropdown ── */
.account-dropdown .dropdown-menu {
    border: 1px solid #e8dcc8;
}

.account-dropdown .dropdown-header {
    background: #1a1a1a;
    color: #e8dcc8;
}

.account-dropdown .dropdown-header h6 {
    color: #C9A96E;
}

/* ── Buttons ── */
.btn-primary,
.btn-shop,
.btn-add-to-cart {
    background: #8B6914 !important;
    border-color: #8B6914 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-shop:hover,
.btn-add-to-cart:hover {
    background: #6d5310 !important;
    border-color: #6d5310 !important;
}

.btn-outline-primary {
    color: #8B6914 !important;
    border-color: #8B6914 !important;
}

.btn-outline-primary:hover {
    background: #8B6914 !important;
    color: #fff !important;
}

/* ── Hero Section ── */
.hero .promo-badge {
    background: rgba(139, 105, 20, 0.1);
    color: #8B6914;
    border: 1px solid rgba(139, 105, 20, 0.3);
}

.hero h2 span {
    color: #8B6914;
}

.hero .btn-collection {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.hero .btn-collection:hover {
    background: #1a1a1a;
    color: #C9A96E;
}

/* ── Section Titles ── */
.section-title h2 {
    color: #1a1a1a;
    position: relative;
}

.section-title h2::after {
    background: linear-gradient(90deg, transparent, #C9A96E, transparent) !important;
}

.section-title p {
    color: #8B6914;
}

/* ── Product Cards ── */
.product-card {
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(139, 105, 20, 0.12);
    border-color: #C9A96E;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card .product-image .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image .default-image {
    opacity: 0;
}

.product-card:hover .product-image .hover-image {
    opacity: 1;
    transform: scale(1.05);
}

.product-card .product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-card .product-tags .badge.bg-sale {
    background: #8B6914 !important;
    font-size: 0.75rem;
    padding: 5px 8px;
    border-radius: 4px;
}

.product-card .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card .product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e8dcc8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-card .product-actions button:hover {
    background: #8B6914;
    color: #fff;
    border-color: #8B6914;
}

.product-card .product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-card .product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    height: auto !important;
    line-height: 1.4;
}

.product-card .product-title a {
    color: #1a1a1a !important;
    font-family: var(--heading-font);
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: #8B6914 !important;
}

.product-card .product-price {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card .current-price {
    color: #8B6914;
    font-weight: 700;
    font-size: 1.1rem;
}

.product-card .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-card .btn-add-to-cart {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin-top: auto;
    width: 100%;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-card .btn-add-to-cart:hover {
    background: #8B6914 !important;
    border-color: #8B6914 !important;
}

/* ── Category Cards ── */
.category-card {
    border: 1px solid #e8dcc8;
}

.category-card:hover {
    border-color: #C9A96E;
    box-shadow: 0 4px 20px rgba(139, 105, 20, 0.1);
}

.category-card .category-title {
    color: #1a1a1a;
    font-family: var(--heading-font);
}

/* ── Product Detail Page ── */
.product-detail-info .product-variation-btn {
    border-color: #e8dcc8;
    color: #1a1a1a;
    background: #fff;
}

.product-detail-info .product-variation-btn:hover,
.product-detail-info .product-variation-btn.active {
    border-color: #8B6914;
    background: #8B6914;
    color: #fff;
}

.product-detail-info .btn-quantity {
    border-color: #e8dcc8;
    color: #1a1a1a;
    background: #fff;
}

.product-detail-info .btn-quantity:hover {
    background: #f8f8f8;
}

.product-detail-info .product-quantity {
    border-color: #e8dcc8;
}

.product-tabs-section .nav-tabs .nav-link {
    color: #1a1a1a !important;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent !important;
}

.product-tabs-section .nav-tabs .nav-link:hover {
    opacity: 1;
    color: #8B6914 !important;
}

.product-tabs-section .nav-tabs .nav-link.active {
    opacity: 1;
    color: #8B6914 !important;
    border-bottom: 3px solid #8B6914 !important;
    background: transparent;
}

/* ── Info Cards ── */
.info-card {
    background: #fff;
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    padding: 40px 20px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.1);
    border-color: #C9A96E;
}

.info-card .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(139, 105, 20, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px dashed rgba(139, 105, 20, 0.3);
    transition: all 0.3s ease;
}

.info-card:hover .icon-box {
    background: rgba(139, 105, 20, 0.1);
    border-style: solid;
}

.info-card .icon-box i {
    color: #8B6914;
    font-size: 2rem;
    line-height: 1;
}

.info-card h3 {
    color: #1a1a1a;
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ── Page Title / Breadcrumb ── */
.page-title {
    background: #1a1a1a !important;
    padding: 20px 0;
}

.page-title h1 {
    color: #C9A96E !important;
    font-family: var(--heading-font);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
}

.page-title .breadcrumbs ol li,
.page-title .breadcrumbs ol li a {
    color: #999 !important;
}

.page-title .breadcrumbs ol li.current {
    color: #e8dcc8 !important;
}

/* ── Footer ── */
#footer {
    background: #1a1a1a;
    color: #ccc;
}

#footer .footer-newsletter {
    background: linear-gradient(135deg, #1a1a1a, #2c2420);
    border-bottom: 1px solid #333;
}

#footer .footer-newsletter h2 {
    color: #C9A96E;
}

#footer .footer-newsletter .newsletter-form button {
    background: #8B6914;
    border-color: #8B6914;
    color: #fff;
}

#footer .footer-newsletter .newsletter-form button:hover {
    background: #6d5310;
}

#footer .footer-newsletter .newsletter-form input {
    background: rgba(255, 255, 255, 0.08);
    border-color: #444;
    color: #e8dcc8;
}

#footer .footer-main h4 {
    color: #C9A96E;
    font-family: var(--heading-font);
    letter-spacing: 0.05em;
}

#footer .footer-links a {
    color: #999;
}

#footer .footer-links a:hover {
    color: #C9A96E;
}

#footer .social-icons a {
    color: #999;
    border: 1px solid #444;
}

#footer .social-icons a:hover {
    background: #8B6914;
    border-color: #8B6914;
    color: #fff;
}

#footer .footer-bottom {
    background: #111;
    border-top: 1px solid #333;
}

#footer .footer-bottom .copyright {
    color: #777;
}

/* ── Scroll Top ── */
.scroll-top {
    background: #8B6914 !important;
    color: #fff !important;
}

.scroll-top:hover {
    background: #6d5310 !important;
}

/* ── Swiper Navigation ── */
.swiper-button-next,
.swiper-button-prev {
    color: #8B6914 !important;
}

/* ── Cart Page ── */
.cart .cart-items .cart-item {
    border-bottom: 1px solid #e8dcc8;
}

.cart .order-summary {
    border: 1px solid #e8dcc8;
    border-radius: 12px;
}

.cart .order-summary .order-summary-header {
    background: #1a1a1a;
    color: #C9A96E;
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
}

.cart .order-summary .order-summary-header h3 {
    color: #C9A96E;
    margin: 0;
}

.cart .order-summary-content {
    padding: 20px;
}

.cart .order-total span:last-child {
    color: #8B6914;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── Checkout Page ── */
.checkout .checkout-section {
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.checkout .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.checkout .section-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8B6914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.checkout .order-summary {
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.checkout .order-summary .order-summary-header {
    background: #1a1a1a;
    color: #C9A96E;
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout .order-summary .order-summary-header h3 {
    color: #C9A96E;
    margin: 0;
    font-size: 1.1rem;
}

.checkout .order-summary-content {
    padding: 20px;
}

.checkout .order-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe0;
}

.checkout .order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout .order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout .order-totals {
    border-top: 1px solid #e8dcc8;
    padding-top: 12px;
    margin-top: 12px;
}

.checkout .order-total {
    border-top: 2px solid #8B6914;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 1.05rem;
}

.checkout .place-order-btn {
    background: #8B6914 !important;
    border-color: #8B6914 !important;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.checkout .place-order-btn:hover {
    background: #6d5310 !important;
}

/* ── Sidebar (Shop) ── */
.sidebar .widget-item {
    background: #fff;
    border: 1px solid #e8dcc8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.sidebar .widget-title {
    color: #1a1a1a;
    font-family: var(--heading-font);
    font-size: 1rem;
    border-bottom: 2px solid #C9A96E;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sidebar .category-link,
.sidebar .subcategory-link {
    color: #444;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar .category-link:hover,
.sidebar .subcategory-link:hover {
    color: #8B6914;
}

/* ── Custom Price Range Slider ── */
.price-range-slider-wrap {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: #e8dcc8;
    border-radius: 5px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.price-range-slider-wrap .slider-track {
    position: absolute;
    height: 100%;
    background-color: #8B6914;
    border-radius: 5px;
    z-index: 1;
}

.price-range-slider-wrap input[type="range"] {
    position: absolute;
    top: -10px;
    /* Center over the 6px track (25px height -> -9.5px, let's use -10px) */
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
    outline: none;
}

.price-range-slider-wrap input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #8B6914;
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 3;
}

.price-range-slider-wrap input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #8B6914;
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.price-value {
    font-weight: 600;
    color: #1a1a1a;
    background: #f8f8f8;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e8dcc8;
    font-size: 0.9rem;
}

/* ── Form Styling ── */
.form-control:focus,
.form-select:focus {
    border-color: #C9A96E;
    box-shadow: 0 0 0 0.2rem rgba(139, 105, 20, 0.15);
}

.form-check-input:checked {
    background-color: #8B6914;
    border-color: #8B6914;
}

/* ── Product Detail Page ── */
.product-detail-gallery .swiper-slide img {
    border-radius: 8px;
}

.product-detail-info .price_div {
    color: #8B6914 !important;
    font-size: 1.8rem;
    font-weight: 700;
}

.product-detail-info .compare-at-price {
    color: #999;
    text-decoration: line-through;
}

.product-detail-info .product-variation-btn {
    border-color: #ddd;
    color: #333;
}

.product-detail-info .product-variation-btn.bg-dark {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

.product-detail-info .quick-add-qty {
    background: #8B6914 !important;
    border-color: #8B6914 !important;
    color: #fff !important;
}

.product-detail-info .quick-add-qty:hover {
    background: #6d5310 !important;
}

/* ── Blog ── */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.1) !important;
}

.blog-card:hover .blog-image-wrap img {
    transform: scale(1.05) !important;
}

.blog-title-link {
    transition: color 0.3s ease;
}

.blog-title-link:hover {
    color: #8B6914 !important;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-content h2, .blog-content h3, .blog-content h4 {
    font-family: var(--heading-font);
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* ── Tabs ── */
.widget-menu-tab .item-title.active .inner {
    color: #8B6914;
    border-bottom-color: #8B6914;
}

/* ── Misc ── */
.promo-code .btn-outline-primary {
    color: #8B6914 !important;
    border-color: #8B6914 !important;
}

.promo-code .btn-outline-primary:hover {
    background: #8B6914 !important;
    color: #fff !important;
}

/* ── Selection highlight ── */
::selection {
    background: rgba(139, 105, 20, 0.2);
    color: #1a1a1a;
}

/* ── Quantity buttons ── */
.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #8B6914;
    color: #fff;
    border-color: #8B6914;
}

.quantity-input {
    width: 48px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    margin: 0 4px;
}

/* ── Remove Item ── */
.remove-item {
    background: none;
    border: none;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    display: block;
}

.remove-item:hover {
    color: #c0392b;
}