/*
 * MadniCraft Visual Style Sheet
 * Theme: Gold & Charcoal Premium Visuals (Inspired by abubhaikapadwala.com)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    --mc-primary: #d7b369;       /* Rich Gold / Brass */
    --mc-primary-hover: #c5a056; /* Slightly Darker Gold */
    --mc-secondary: #111111;     /* Premium Charcoal / Black */
    --mc-bg: #FAF9F6;            /* Warm Soft Cream White */
    --mc-bg-card: #FFFFFF;       /* Pure White */
    --mc-text: #222222;          /* Deep Off-Black Text */
    --mc-text-muted: #6e7070;    /* Muted Gray Text */
    --mc-border: #e8e2d4;        /* Soft Gold-tinted Border */
    --mc-accent: #d7b369;        /* Gold Accent */
    --mc-success: #d7b369;       /* Override success with Gold */
}

/* Base Styles */
body {
    background-color: var(--mc-bg) !important;
    color: var(--mc-text) !important;
    font-family: 'Jost', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    color: var(--mc-primary) !important;
    font-weight: 700 !important;
}

a {
    color: var(--mc-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--mc-primary-hover);
}

/* Custom Overrides for Bootstrap Success & Warning utility classes */
.bg-success {
    background-color: var(--mc-primary) !important;
}
.text-success {
    color: var(--mc-primary) !important;
}
.btn-success {
    background-color: var(--mc-primary) !important;
    border-color: var(--mc-primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(215, 179, 105, 0.1) !important;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: var(--mc-primary-hover) !important;
    border-color: var(--mc-primary-hover) !important;
    box-shadow: 0 6px 12px rgba(215, 179, 105, 0.2) !important;
    transform: translateY(-1px);
}
.btn-outline-success {
    color: var(--mc-primary) !important;
    border-color: var(--mc-primary) !important;
    background-color: transparent !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
}
.btn-outline-success:hover {
    background-color: var(--mc-primary) !important;
    color: #ffffff !important;
}

.text-warning {
    color: var(--mc-accent) !important;
}

.bg-dark {
    background-color: var(--mc-secondary) !important;
}

.bg-black {
    background-color: #000000 !important;
}

/* Input Fields & Field Icon styling */
.form-control, .form-select {
    border: 1px solid var(--mc-border) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: var(--mc-text) !important;
    background-color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
}
.form-control::placeholder {
    color: var(--mc-text-muted) !important;
    opacity: 0.7;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mc-primary) !important;
    box-shadow: 0 0 0 3px rgba(143, 91, 52, 0.15) !important;
    outline: none !important;
}

/* Custom styled Input Group with Icons */
.input-group-text {
    background-color: #ffffff !important;
    border: 1px solid var(--mc-border) !important;
    border-right: none !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    color: var(--mc-primary) !important;
    font-size: 16px !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
}
.input-group-text i {
    width: 18px;
    text-align: center;
}
.input-group .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
.input-group:focus-within .input-group-text {
    border-color: var(--mc-primary) !important;
    color: var(--mc-primary-hover) !important;
}

/* Form Container Card */
.auth-card {
    background: var(--mc-bg-card);
    border: 1px solid var(--mc-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(143, 91, 52, 0.04);
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}
.auth-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}
.auth-header p {
    color: var(--mc-text-muted);
    font-size: 15px;
}

/* Site Navbar Overrides */
.navbar {
    background-color: var(--mc-bg) !important;
    border-bottom: 1px solid var(--mc-border);
    padding: 15px 0 !important;
}
.site-logo {
    height: 52px;
    max-height: 52px;
    width: auto;
    object-fit: contain;
}
.navbar-brand .logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 26px !important;
    color: var(--mc-primary) !important;
    letter-spacing: 0.5px;
}
.navbar-light .navbar-nav .nav-link {
    color: var(--mc-text) !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--mc-primary) !important;
}
.navbar-light .navbar-nav .nav-link.active {
    color: var(--mc-primary) !important;
    font-weight: 600 !important;
}
.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--mc-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-icon {
    color: var(--mc-text) !important;
    font-size: 18px;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.navbar .nav-icon:hover {
    color: var(--mc-primary) !important;
}

/* Header Login / Profile Buttons */
.header-login-btn {
    border: 1px solid var(--mc-primary) !important;
    color: var(--mc-primary) !important;
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}
.header-login-btn:hover {
    background-color: var(--mc-primary) !important;
    color: #ffffff !important;
}

.header-profile-btn {
    background-color: var(--mc-primary) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 6px 18px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header-profile-btn:hover {
    background-color: var(--mc-primary-hover) !important;
    color: #ffffff !important;
}

/* Cards & Shop Item Designs */
.card.product-wap {
    background: #ffffff !important;
    border: 1px solid var(--mc-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.card.product-wap:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(143, 91, 52, 0.08) !important;
    border-color: var(--mc-secondary) !important;
}
.card.product-wap .card-body {
    padding: 20px !important;
    background-color: #ffffff !important;
}
.card.product-wap .card-body a.h3 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: var(--mc-text) !important;
}
.card.product-wap .card-body a.h3:hover {
    color: var(--mc-primary) !important;
}
.card.product-wap .card-body p.text-center {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    color: var(--mc-primary) !important;
}
.product-wap .card-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
}
.product-overlay form {
    margin: 0;
}
.product-overlay .btn {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.product-gallery {
    display: grid;
    gap: 14px;
}
.product-gallery-main {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(143, 91, 52, 0.05);
}
.product-gallery-main img,
.product-gallery-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.product-gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-text-muted);
    background: #FAF6F0;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(78, 54, 41, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gallery-nav:hover {
    background: var(--mc-primary);
}
.gallery-nav-prev {
    left: 14px;
}
.gallery-nav-next {
    right: 14px;
}
.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.gallery-thumb {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
}
.gallery-thumb.active {
    border-color: var(--mc-primary);
    box-shadow: 0 0 0 3px rgba(143, 91, 52, 0.14);
}
.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.product-detail-panel {
    border: 1px solid var(--mc-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(143, 91, 52, 0.05);
}
.product-detail-panel .card-body {
    padding: 30px !important;
}
.product-detail-heading h1 {
    margin: 10px 0 6px;
    font-size: 34px !important;
}
.product-type-pill {
    display: inline-flex;
    align-items: center;
    background: #FAF6F0;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    color: var(--mc-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
}
.category-breadcrumb {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    background: #FAF6F0;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    color: var(--mc-primary);
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    padding: 5px 10px;
    text-transform: none !important;
    overflow-wrap: anywhere;
    white-space: normal;
}
.product-color-label {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    color: var(--mc-text-muted);
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    padding: 5px 10px;
    text-transform: none !important;
}
.category-sidebar-link {
    display: block;
    color: var(--mc-text) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--mc-border);
    border-radius: 8px;
}
.category-sidebar-link:hover {
    background: #ffffff;
    border-color: var(--mc-secondary);
    color: var(--mc-primary) !important;
}
.product-detail-price {
    color: var(--mc-primary);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px !important;
    font-weight: 700 !important;
    margin-bottom: 18px;
}
.product-detail-description {
    color: var(--mc-text-muted);
    font-size: 16px !important;
    line-height: 1.7;
}
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}
.product-info-grid div {
    background: #FAF6F0;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    padding: 14px;
}
.product-info-grid span {
    display: block;
    color: var(--mc-text-muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.product-info-grid strong {
    color: var(--mc-text);
}
.product-purchase-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}
.quantity-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    padding: 8px 10px;
}
.quantity-stepper span {
    color: var(--mc-text-muted);
    font-size: 13px;
    font-weight: 700;
}
.quantity-stepper .btn {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.quantity-stepper strong {
    min-width: 24px;
    color: var(--mc-text);
    text-align: center;
}

/* Hero Carousel Customizations */
#template-mo-zay-hero-carousel {
    background: linear-gradient(135deg, #FAF6F0, #F3ECE2) !important;
    border-bottom: 1px solid var(--mc-border);
}
#template-mo-zay-hero-carousel .carousel-indicators li {
    background-color: var(--mc-secondary) !important;
}
#template-mo-zay-hero-carousel .carousel-indicators li.active {
    background-color: var(--mc-primary) !important;
}
#template-mo-zay-hero-carousel .carousel-control-next i,
#template-mo-zay-hero-carousel .carousel-control-prev i {
    color: var(--mc-primary) !important;
}

/* Footer redesign */
footer#tempaltemo_footer {
    background-color: var(--mc-secondary) !important;
    color: #FAF9F6 !important;
    border-top: 4px solid var(--mc-primary);
}
footer#tempaltemo_footer .logo {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
footer#tempaltemo_footer h2.border-bottom {
    border-color: rgba(215, 179, 105, 0.3) !important;
    color: #ffffff !important;
    font-size: 22px !important;
}
footer#tempaltemo_footer a {
    color: #E6DFD9 !important;
    font-size: 15px !important;
}
footer#tempaltemo_footer a:hover {
    color: var(--mc-primary) !important;
}
footer#tempaltemo_footer .footer-icons li {
    border-color: rgba(215, 179, 105, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
footer#tempaltemo_footer .footer-icons li:hover {
    background-color: #ffffff !important;
}
footer#tempaltemo_footer .footer-icons li:hover a i {
    color: var(--mc-secondary) !important;
}
footer#tempaltemo_footer .input-group-text.btn-success {
    background-color: var(--mc-primary) !important;
    border-color: var(--mc-primary) !important;
}
footer#tempaltemo_footer .input-group-text.btn-success:hover {
    background-color: #ffffff !important;
    color: var(--mc-secondary) !important;
}

/* Admin Navigation */
.admin-navbar {
    background: #4E3629 !important;
    border-bottom: 2px solid var(--mc-secondary);
    padding: 12px 0 !important;
}
.admin-brand {
    margin-right: 18px;
}
.admin-logo {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.admin-logo-text {
    margin-left: 12px;
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}
.admin-logo-text span {
    color: var(--mc-secondary);
}
.admin-nav-links {
    gap: 4px;
}
.admin-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.86) !important;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 10px !important;
}
.admin-nav-links .nav-link:hover,
.admin-nav-links .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}
.admin-user-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.admin-logout-btn {
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 7px 13px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.admin-logout-btn:hover {
    background: #ffffff !important;
    color: var(--mc-primary) !important;
}

/* Admin Dashboard Elements */
.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(143, 91, 52, 0.02);
    transition: transform 0.3s ease;
}
.dashboard-card:hover {
    transform: translateY(-2px);
}
.dashboard-stat {
    font-size: 36px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    color: var(--mc-primary);
}
.dashboard-label {
    font-size: 14px;
    color: var(--mc-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dashboard-table {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    overflow: hidden;
}
.dashboard-table th {
    background-color: #FAF6F0;
    color: var(--mc-primary);
    font-weight: 600;
    padding: 15px;
}
.dashboard-table td {
    padding: 15px;
    color: var(--mc-text);
    border-top: 1px solid var(--mc-border);
}
.cart-items-row td {
    background: #fffaf5;
}
.cart-items-panel {
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    overflow: hidden;
}
.cart-admin-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--mc-border);
}
.cart-admin-item:last-child {
    border-bottom: 0;
}
.admin-form-panel {
    padding: 28px !important;
}
.category-tree-panel {
    padding: 10px;
}
.category-tree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-left: calc(var(--category-level) * 22px);
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    margin-bottom: 10px;
}
.category-tree-row::before {
    content: '';
    width: calc(var(--category-level) * 14px);
    display: none;
}
.category-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.category-row-actions form {
    margin: 0;
}
.cart-empty-state {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 48px 24px;
}
.cart-empty-state i {
    color: var(--mc-secondary);
    font-size: 42px;
}
.cart-list {
    display: grid;
    gap: 14px;
}
.cart-list-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 14px;
}
.cart-product-media img,
.cart-product-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
}
.cart-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF6F0;
    border: 1px solid var(--mc-border);
    color: var(--mc-text-muted);
    font-size: 12px;
}
.cart-product-info h2 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--mc-text) !important;
    font-size: 17px !important;
}
.cart-item-price,
.cart-line-total,
.cart-summary-total strong {
    color: var(--mc-primary);
    font-weight: 700;
}
.cart-product-actions {
    min-width: 180px;
    text-align: right;
}
.cart-quantity-form {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}
.cart-quantity-form .form-control {
    width: 74px;
    padding: 6px 8px !important;
    text-align: center;
}
.cart-summary {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 24px;
}
.cart-summary-total {
    border-top: 1px solid var(--mc-border);
    margin-top: 14px;
    padding-top: 14px;
}

/* Custom Profile Badges */
.badge-verified {
    background-color: #FAF6F0;
    color: var(--mc-primary);
    border: 1px solid var(--mc-secondary);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-admin {
    background-color: var(--mc-accent);
    color: #ffffff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Mobile & Responsive Queries (Biscuit Theme Adaptations)
   ========================================================================== */

/* Tablet & Mobile Navigation Adjustments (< 992px) */
@media (max-width: 991.98px) {
    .site-header {
        padding: 0 10px;
    }
    .navbar-brand .logo-text {
        font-size: 21px !important;
    }
    .site-logo {
        height: 42px !important;
    }
    #templatemo_main_nav {
        background-color: #ffffff;
        border: 1px solid var(--mc-border);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 8px 24px rgba(78, 54, 41, 0.08);
    }
    .navbar-nav {
        text-align: center;
        margin-bottom: 15px;
    }
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--mc-border);
    }
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-nav .nav-link::after {
        display: none !important; /* Hide hover underline line on mobile */
    }
    .navbar-collapse .d-flex {
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
    .navbar-collapse .dropdown-menu {
        text-align: center;
        border: 1px solid var(--mc-border) !important;
    }
}

/* Mobile Layout Scaling (< 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px !important;
    }
    .h1, h1 { font-size: 28px !important; }
    .h2, h2 { font-size: 24px !important; }
    .h3, h3 { font-size: 20px !important; }
    .h4, h4 { font-size: 18px !important; }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .py-5 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    .auth-card {
        padding: 24px !important;
        border-radius: 12px !important;
    }
    .auth-header h2 {
        font-size: 26px !important;
    }
    .btn-success {
        padding: 10px 18px !important;
        font-size: 15px !important;
    }
}

/* Admin Dashboard & Form Adjustments (< 768px) */
@media (max-width: 767.98px) {
    .dashboard-card {
        margin-bottom: 15px;
        padding: 16px;
    }
    .dashboard-stat {
        font-size: 28px;
    }
    
    /* Quantity inline form alignment */
    .dashboard-table td form {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Button formatting in Admin table cell list */
    .dashboard-table td .btn {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    .dashboard-table td {
        padding: 10px !important;
        font-size: 13px !important;
    }
    .cart-list-item {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
    }
    .cart-product-media img,
    .cart-product-placeholder {
        width: 72px;
        height: 72px;
    }
    .cart-product-actions {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
    }
    .cart-quantity-form {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .cart-summary {
        position: static;
    }
    .category-tree-row {
        align-items: flex-start;
        flex-direction: column;
        margin-left: calc(var(--category-level) * 12px);
    }
    .category-row-actions {
        width: 100%;
    }
    .category-row-actions .btn,
    .category-row-actions form {
        flex: 1;
    }
    .category-row-actions form .btn {
        width: 100%;
    }
    .product-detail-panel .card-body {
        padding: 22px !important;
    }
    .product-detail-heading h1 {
        font-size: 28px !important;
    }
    .product-info-grid {
        grid-template-columns: 1fr;
    }
    .product-purchase-row {
        align-items: stretch;
        flex-direction: column;
    }
    .quantity-stepper {
        justify-content: space-between;
    }
    
    /* Wrap buttons vertically on dashboard/catalog headers */
    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
        gap: 8px !important;
        margin-top: 10px;
    }
    .d-flex.gap-2 .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Admin Brand layout */
    .navbar-brand .logo-text span {
        display: none; /* Hide 'Admin' sublogo badge if screen space is tight */
    }
}

/* ========================================================================
   Responsive Stabilization Layer
   ======================================================================== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

.container,
.container-fluid {
    min-width: 0;
}

.row > * {
    min-width: 0;
}

.card,
.auth-card,
.dashboard-card,
.dashboard-table,
.cart-summary,
.product-detail-panel,
.product-gallery-main {
    max-width: 100%;
}

.table-responsive {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table table {
    min-width: 760px;
}

.dashboard-table th,
.dashboard-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.dashboard-table td {
    overflow-wrap: anywhere;
}

.btn,
.form-control,
.form-select,
.input-group-text {
    min-height: 42px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2 !important;
    white-space: normal;
}

.input-group {
    min-width: 0;
}

.input-group .form-control,
.input-group .form-select {
    min-width: 0;
}

.site-header {
    gap: 12px;
}

#templatemo_main_nav {
    min-width: 0;
}

.navbar .navbar-nav {
    gap: 4px;
}

.navbar .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
}

.header-profile-btn,
.header-login-btn {
    min-height: 34px;
}

.admin-navbar .container {
    gap: 12px;
}

.admin-nav-links {
    flex-wrap: wrap;
    justify-content: center;
}

.admin-actions {
    flex-shrink: 0;
}

.admin-user-chip,
.admin-logout-btn {
    min-height: 36px;
}

.product-wap {
    height: calc(100% - 1.5rem);
}

.product-wap .card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-wap .card-body a.h3,
.product-wap .card-body .h3 {
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
}

.product-wap .card-body ul {
    gap: 8px;
}
.product-wap .card-body ul.w-100 {
    flex-wrap: wrap;
    justify-content: flex-start !important;
}

/* Reference-style fashion storefront */
.storefront-home {
    background: #ffffff !important;
}
.fashion-hero {
    background: #FAF9F6;
    border-bottom: 1px solid var(--mc-border);
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}
.fashion-hero .carousel-item {
    min-height: auto;
}
.fashion-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: center;
}
.store-eyebrow {
    display: inline-flex;
    color: var(--mc-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.fashion-hero h1 {
    color: #2b201a !important;
    font-size: clamp(38px, 6vw, 72px) !important;
    line-height: 0.95;
    margin-bottom: 18px;
}
.fashion-hero p {
    color: var(--mc-text-muted);
    font-size: 17px !important;
    max-width: 560px;
}
.fashion-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.fashion-hero-media {
    overflow: hidden;
    border-radius: 18px;
    min-height: 420px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(78, 54, 41, 0.12);
}
.fashion-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}
.fashion-hero-image-only {
    overflow: hidden;
    border-radius: 0 !important;
    background: #faf9f6;
    box-shadow: none !important;
    position: relative;
    width: 100%;
}
.fashion-hero-image-only img {
    width: 100%;
    height: auto !important;
    display: block;
}
.fashion-hero-control {
    width: 60px !important;
    opacity: 0.8;
    background: transparent !important;
    border: none !important;
    transition: opacity 0.3s ease;
}
.fashion-hero-control:hover {
    opacity: 1;
    background: transparent !important;
}
.fashion-hero-control i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.4) !important;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 18px;
    transition: all 0.3s ease;
}
.fashion-hero-control:hover i {
    background: var(--mc-primary) !important;
    color: #ffffff !important;
    transform: scale(1.1);
}
.fashion-hero-indicators {
    bottom: 20px !important;
    margin-bottom: 0;
    z-index: 15;
}
.fashion-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}
.fashion-hero-indicators .active {
    background-color: var(--mc-primary) !important;
    transform: scale(1.25);
}
.store-section {
    padding: 54px 0;
}
.store-section-soft {
    background: #faf6f0;
}
.store-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 24px;
}
.store-section-heading h2 {
    color: #2b201a !important;
    font-size: clamp(28px, 4vw, 44px) !important;
    margin: 0;
}
.store-section-heading p {
    color: var(--mc-text-muted);
    margin: 0;
}
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.category-showcase-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 14px;
    background: #222;
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(78, 54, 41, 0.12);
}
.category-showcase-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.category-showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.72));
}
.category-showcase-card span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    font-weight: 800;
    line-height: 1.2;
}
.category-showcase-card:hover img {
    transform: scale(1.06);
}
.fashion-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.col-lg-9 .fashion-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fashion-product-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fashion-product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(78, 54, 41, 0.08);
}
.fashion-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background: #faf6f0;
    color: var(--mc-text-muted);
}
.fashion-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fashion-product-body {
    padding: 16px;
}
.fashion-product-price {
    color: var(--mc-primary);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}
.fashion-product-title {
    display: block;
    color: #2b201a !important;
    font-size: 17px !important;
    font-weight: 800;
    line-height: 1.35;
    min-height: 46px;
}
.fashion-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}
.fashion-product-stock {
    color: var(--mc-text-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.fashion-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fashion-product-actions form {
    margin: 0;
}
.promo-tile-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
}
.promo-tile {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 16px;
    color: #ffffff !important;
    background: #2b201a;
}
.promo-tile-large {
    min-height: 420px;
}
.promo-tile img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}
.promo-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}
.promo-tile span,
.promo-tile strong {
    position: absolute;
    z-index: 1;
    left: 22px;
    right: 22px;
}
.promo-tile span {
    bottom: 58px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}
.promo-tile strong {
    bottom: 24px;
    color: #fff;
}
.store-empty-message {
    grid-column: 1 / -1;
    padding: 36px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
}
.store-contact-strip {
    background: #2b201a;
    color: #fff;
    padding: 34px 0;
}
.store-contact-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.store-contact-strip h2 {
    color: #fff !important;
    margin: 0 0 4px;
}
.store-contact-strip p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}
.fashion-footer {
    background: #111;
    color: rgba(255, 255, 255, 0.78);
    padding: 52px 0 0;
}
.fashion-footer h3 {
    color: #fff !important;
    font-size: 22px !important;
}
.fashion-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fashion-footer li {
    margin-bottom: 10px;
}
.fashion-footer a {
    color: rgba(255, 255, 255, 0.78) !important;
}
.fashion-footer a:hover {
    color: #fff !important;
}
.fashion-footer-bottom {
    margin-top: 24px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
}
.mobile-shop-bar {
    display: none;
}
.storefront-dropdown .dropdown-item {
    color: var(--mc-text);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
}

.product-wap .card-body li {
    min-width: 0;
    overflow-wrap: anywhere;
}

#template-mo-zay-hero-carousel .carousel-item {
    min-height: auto !important;
}

#template-mo-zay-hero-carousel .row {
    align-items: center;
}

#template-mo-zay-hero-carousel img {
    max-height: 420px;
    width: 100%;
    object-fit: contain;
}

footer#tempaltemo_footer .footer-link-list li,
footer#tempaltemo_footer p,
footer#tempaltemo_footer a {
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .admin-logo-text {
        font-size: 21px;
    }

    .admin-nav-links .nav-link {
        font-size: 13px !important;
        padding: 8px !important;
    }

    .fashion-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0 !important;
    }

    .navbar .navbar-collapse {
        width: 100%;
    }

    .navbar-collapse .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navbar .nav-icon {
        margin-left: 0;
    }

    .admin-navbar .navbar-collapse {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        margin-top: 14px;
        padding: 14px;
    }

    .admin-nav-links {
        align-items: stretch;
        margin-bottom: 12px !important;
        width: 100%;
    }

    .admin-nav-links .nav-item,
    .admin-nav-links .nav-link {
        width: 100%;
    }

    .admin-nav-links .nav-link {
        justify-content: flex-start;
    }

    .admin-actions {
        justify-content: space-between;
        width: 100%;
    }

    .auth-card {
        padding: 30px;
    }

    .product-gallery {
        margin-bottom: 20px;
    }

    .shop-top-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fashion-hero-grid {
        grid-template-columns: 1fr;
    }

    .fashion-hero-media,
    .fashion-hero-media img {
        min-height: 340px;
    }

    .fashion-product-grid,
    .fashion-product-grid-compact,
    .category-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .promo-tile-grid {
        grid-template-columns: 1fr;
    }

    .promo-tile,
    .promo-tile-large {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 100% !important;
    }

    .container.py-5 > .d-flex.justify-content-between.align-items-center,
    .container.py-5.mt-4 > .d-flex.justify-content-between.align-items-center {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 12px;
    }

    .container.py-5 > .d-flex.justify-content-between.align-items-center > div,
    .container.py-5 > .d-flex.justify-content-between.align-items-center > a,
    .container.py-5 > .d-flex.justify-content-between.align-items-center > .btn,
    .container.py-5.mt-4 > .d-flex.justify-content-between.align-items-center > div,
    .container.py-5.mt-4 > .d-flex.justify-content-between.align-items-center > a,
    .container.py-5.mt-4 > .d-flex.justify-content-between.align-items-center > .btn {
        max-width: 100%;
    }

    .dashboard-table {
        overflow-x: auto;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px !important;
        font-size: 13px !important;
    }

    .dashboard-table td .d-inline-flex {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .dashboard-card {
        text-align: left !important;
    }

    .dashboard-stat {
        line-height: 1;
    }

    .auth-card,
    .admin-form-panel,
    .cart-summary,
    .product-detail-panel .card-body {
        padding: 20px !important;
    }

    .product-gallery-thumbs {
        grid-template-columns: repeat(4, minmax(54px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .product-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        background: linear-gradient(180deg, transparent 45%, rgba(78, 54, 41, 0.55)) !important;
        align-items: flex-end !important;
        padding-bottom: 12px;
    }

    .product-overlay ul {
        display: flex;
        gap: 8px;
        margin: 0;
    }

    .product-overlay .btn {
        width: 40px;
        height: 40px;
    }

    .cart-list-item {
        padding: 12px;
    }

    .cart-product-info h2 {
        font-size: 15px !important;
    }

    footer#tempaltemo_footer .row.text-light.mb-4 {
        gap: 14px;
    }

    footer#tempaltemo_footer .col-auto {
        width: 100%;
    }

    .store-section {
        padding: 38px 0;
    }

    .store-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-showcase-card,
    .category-showcase-card img {
        min-height: 160px;
    }

    .store-contact-strip .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .fashion-footer {
        padding-bottom: 72px;
    }

    .mobile-shop-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: #ffffff;
        border-top: 1px solid var(--mc-border);
        box-shadow: 0 -8px 24px rgba(78, 54, 41, 0.12);
    }

    .mobile-shop-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        min-height: 58px;
        color: var(--mc-text) !important;
        font-size: 11px !important;
        font-weight: 700;
    }

    .mobile-shop-bar i {
        color: var(--mc-primary);
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 38px !important;
        max-height: 38px !important;
    }

    .navbar-brand .logo-text {
        font-size: 20px !important;
        margin-left: 8px !important;
    }

    .admin-logo {
        width: 36px;
        height: 36px;
    }

    .admin-logo-text {
        font-size: 19px;
        margin-left: 8px;
    }

    .admin-actions {
        align-items: stretch !important;
        flex-direction: column;
    }

    .admin-user-chip,
    .admin-logout-btn,
    .admin-actions form {
        width: 100%;
    }

    .btn,
    .btn-success,
    .btn-outline-success {
        width: auto;
        max-width: 100%;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }

    .d-grid .btn,
    .auth-card .btn,
    .cart-summary .btn,
    .product-purchase-row .btn-lg {
        width: 100%;
    }

    .form-control,
    .form-select,
    .input-group-text {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    .input-group-text {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .auth-card {
        border-radius: 12px;
        padding: 18px !important;
    }

    .category-tree-row {
        margin-left: 0 !important;
    }

    .product-detail-heading h1 {
        font-size: 26px !important;
    }

    .product-detail-price {
        font-size: 26px !important;
    }

    .cart-list-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .cart-product-media img,
    .cart-product-placeholder {
        width: 64px;
        height: 64px;
    }

    #template-mo-zay-hero-carousel .row {
        padding: 28px 12px !important;
    }

    #template-mo-zay-hero-carousel img {
        max-height: 260px;
    }

    footer#tempaltemo_footer .input-group {
        flex-wrap: nowrap;
    }

    .fashion-hero {
        padding: 28px 0;
    }

    .fashion-hero h1 {
        font-size: 36px !important;
    }

    .fashion-hero p {
        font-size: 15px !important;
    }

    .fashion-hero-media,
    .fashion-hero-media img {
        min-height: 260px;
    }



    .fashion-hero-control {
        display: none;
    }

    .fashion-hero-actions .btn {
        width: 100%;
    }

    .fashion-product-grid,
    .fashion-product-grid-compact,
    .category-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .fashion-product-actions .btn,
    .fashion-product-actions form {
        width: 100%;
    }

    .promo-tile,
    .promo-tile-large {
        min-height: 240px;
    }

    .promo-tile span {
        font-size: 25px;
    }
}

/* ==========================================================================
   Gold & Charcoal Theme Custom Enhancements (Announcement & WhatsApp)
   ========================================================================== */

/* Top Announcement Scrolling Bar */
.top-announcement-bar {
    background-color: #111111;
    color: #d7b369;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-family: 'Jost', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(215, 179, 105, 0.2);
}
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 32s linear infinite;
    padding-left: 100%;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.marquee-content span {
    display: inline-block;
    margin-right: 60px;
    font-weight: 600;
}
.marquee-content i {
    color: #ffffff;
    margin-right: 6px;
}
@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 85px; /* Sits above mobile bottom bar */
    right: 20px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.45);
}
.whatsapp-float i {
    font-size: 30px !important;
    line-height: 1;
}
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Adjust layout on desktop screens */
@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }
}

/* Admin Dashboard Table Scroll Improvement */
.table-responsive {
    max-width: 100%;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard-table table {
    width: 100% !important;
}

/* Enable dropdown menu display on hover for desktop screens */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .nav-item.dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Hide default bootstrap caret */
.nav-link.dropdown-toggle::after {
    display: none !important;
}

/* Force 5 columns on laptop/desktop viewports */
@media (min-width: 992px) {
    .category-showcase-grid,
    .fashion-product-grid,
    .fashion-product-grid-compact,
    .col-lg-9 .fashion-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Admin text wrapping improvements */
.text-wrap-cell {
    white-space: normal !important;
    min-width: 160px;
}

