@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff; /* Light background */
    color: #1A1A1A; /* Black with slight dark tint for gold-like depth */
}

.strict-font {
    font-family: 'Montserrat', sans-serif;
}

.text-black {
    color: #1A1A1A; /* Adjusted black */
}

.text-gold {
    color: #D4AF37; /* Golden accent */
}

.bg-gold {
    background-color: #D4AF37; /* Golden background */
}

.bg-white {
    background-color: #fff;
}

.btn-gold {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
}

.btn-gold:hover {
    background-color: #B8860B; /* Darker gold */
    border-color: #B8860B;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border-color: #D4AF37;
    color: #D4AF37;
    background-color: transparent;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
}

.btn-outline-gold:hover {
    background-color: #D4AF37;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Premium hover */
    border-radius: 0; /* Clean edges */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Subtle shadow */
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 0;
    background-color: #D4AF37; /* Golden badge */
    color: #000;
}

main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

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

/* =============================================================================
   PRODUCT IMAGE - SQUARE + FULL WIDTH
   ============================================================================= */

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* creates 1:1 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.product-img-wrapper > a {
    position: absolute;
    inset: 0;
    display: block;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Optional: on very small screens you can allow natural aspect if preferred */
@media (max-width: 576px) {
    .product-img-wrapper {
        padding-top: 100%; /* still square - comment out if you want original ratio on mobile */
    }
}

/* =============================================================================
   HEADER (modern, white, responsive)
   ============================================================================= */

.header-nav {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 114px; /* 3x original 38px */
    width: auto;
    display: block;
}

@media (max-width: 575.98px) {
    .header-logo {
        height: 96px; /* 3x original 32px */
    }
}

.header-menu {
    gap: 8px;
}

.header-link {
    color: #111 !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 10px 12px !important;
}

.header-link:hover,
.header-link:focus {
    color: #000 !important;
}

.header-dropdown {
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 320px;
}

.header-search-mobile {
    padding: 10px 0 14px;
    min-width: 0;
}

.header-search-input {
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 10px 12px;
}

.header-search-input:focus {
    border-color: rgba(0,0,0,0.3);
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.08);
}

.header-search-btn {
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: #111;
    padding: 10px 12px;
    line-height: 1;
}

.header-search-btn:hover {
    background: rgba(0,0,0,0.04);
    color: #000;
}

.header-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
}

.header-cart-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.header-cart-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #D4AF37; /* Golden badge */
    color: #000;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn {
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: #111;
    padding: 8px 10px;
    line-height: 1;
}

.header-icon-btn:hover {
    background: rgba(0,0,0,0.04);
    color: #000;
}

.header-toggler {
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 8px 10px;
}

.navbar-toggler-icon {
    filter: none;
}

@media (min-width: 992px) {
    .header-menu {
        flex: 1;
        justify-content: center;
    }
}

/* =============================================================================
   FOOTER image sizing
   ============================================================================= */

.footer-badge-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
}

@media (max-width: 767.98px) {
    .footer-badge-img {
        max-width: 120px;
    }
}

@media (max-width: 991.98px) {
    .header-nav .container {
        flex-direction: column;
        align-items: center;
    }
    .header-brand {
        margin-bottom: 10px;
    }
    .d-flex.align-items-center.gap-2.ms-auto.d-lg-none {
        margin-inline-start: auto !important;
        width: 100%;
        justify-content: space-between;
    }
}

.footer {
    padding: 40px 0;
}

.footer h5 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.footer ul.list-unstyled li {
    margin-bottom: 10px;
}

.footer ul.list-unstyled li a.btn-gold {
    display: block;
    text-align: center;
}

@media (max-width: 767.98px) {
    .footer .row > div {
        margin-bottom: 30px;
    }
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
}

.sidebar h5 {
    background-color: #D4AF37; /* Golden */
    color: #fff;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar ul.list-unstyled li a {
    display: block;
    padding: 8px 12px;
    border: 1px solid #333;
    color: #333;
    margin-bottom: 5px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.sidebar ul.list-unstyled li a:hover {
    background-color: #D4AF37;
    color: #fff;
    border-color: #D4AF37;
}

/* =============================================================================
   FOOTER FIXES (equal columns + uniform dimming) — added without deleting anything
   ============================================================================= */

/* Uniform light dimming across the entire footer */
.footer.footer-modern {
    background-color: rgba(0,0,0,0.12);
}

/* Fix conflict with earlier .footer { height:60px; } for the modern footer */
.footer.footer-modern {
    height: auto;
    min-height: 0;
}

/* Make footer columns equal height */
.footer.footer-modern .row {
    align-items: stretch;
}

.footer.footer-modern .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Ensure lists stretch to the bottom so columns match */
.footer.footer-modern ul.list-unstyled {
    flex: 1 1 auto;
    margin-bottom: 0;
}

/* Keep spacing consistent and avoid extra gaps from last list item */
.footer.footer-modern ul.list-unstyled li:last-child {
    margin-bottom: 0;
}
