/* =========================================================
   ARD RUGS - Shared Theme
   Luxury palette: Burgundy + Warm Ivory + Champagne + Ink
   Bootstrap-friendly: these styles enhance Bootstrap rather
   than replacing its grid/utilities.
   ========================================================= */

:root {
    --ard-primary: #8f1717;
    --ard-primary-dark: #681010;
    --ard-primary-soft: #f8e8e5;
    --ard-secondary: #b78b5d;
    --ard-gold: #c9a36a;
    --ard-ivory: #fbfaf7;
    --ard-cream: #f4eee6;
    --ard-white: #ffffff;
    --ard-ink: #202020;
    --ard-muted: #6f6a65;
    --ard-border: #e7e0d8;
    --ard-success: #198754;
    --ard-warning: #c98216;
    --ard-danger: #c62828;
    --ard-info: #2769a8;
    --ard-shadow-sm: 0 2px 12px rgba(32, 20, 14, .06);
    --ard-shadow: 0 10px 30px rgba(32, 20, 14, .09);
    --ard-radius: 10px;
    --ard-radius-lg: 16px;
    --ard-transition: .25s ease;
    --ard-heading: Georgia, "Times New Roman", serif;
    --ard-body: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ard-body);
    color: var(--ard-ink);
    background: var(--ard-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ard-heading);
    color: #171313;
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: var(--ard-primary);
    text-decoration: none;
    transition: color var(--ard-transition);
}
a:hover { color: var(--ard-primary-dark); }

img { max-width: 100%; }

button, .btn, input, select, textarea {
    font-family: inherit;
}

.form-control,
.form-select {
    border-color: var(--ard-border);
    border-radius: 8px;
    min-height: 44px;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--ard-primary);
    box-shadow: 0 0 0 .2rem rgba(143, 23, 23, .10);
}

.btn-ard {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ard-primary);
    --bs-btn-border-color: var(--ard-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ard-primary-dark);
    --bs-btn-hover-border-color: var(--ard-primary-dark);
    --bs-btn-focus-shadow-rgb: 143,23,23;
    border-radius: 7px;
    font-weight: 600;
    letter-spacing: .02em;
}

.btn-ard-outline {
    color: var(--ard-primary);
    background: transparent;
    border: 1px solid var(--ard-primary);
    border-radius: 7px;
    font-weight: 600;
}
.btn-ard-outline:hover {
    color: #fff;
    background: var(--ard-primary);
}

.ard-card {
    background: var(--ard-white);
    border: 1px solid var(--ard-border);
    border-radius: var(--ard-radius);
    box-shadow: var(--ard-shadow-sm);
}

.ard-section {
    padding: 72px 0;
}

.ard-section-title {
    margin-bottom: 34px;
}
.ard-section-title .eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--ard-secondary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ard-divider {
    height: 1px;
    background: var(--ard-border);
    border: 0;
}

.ard-price {
    color: var(--ard-primary);
    font-weight: 700;
}

.ard-muted { color: var(--ard-muted) !important; }

.ard-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}

.ard-badge-success { color: #146c43; background: #dff3e8; }
.ard-badge-warning { color: #8a5b0a; background: #fff0cf; }
.ard-badge-danger { color: #9f1d1d; background: #fde2e2; }
.ard-badge-info { color: #1e5688; background: #e2effb; }

.ard-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ard-border);
    border-radius: var(--ard-radius);
}

.ard-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: collapse;
}
.ard-table th {
    background: var(--ard-ivory);
    color: #4d4640;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.ard-table th,
.ard-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--ard-border);
    vertical-align: middle;
}
.ard-table tbody tr:hover { background: #fffaf7; }

.ard-empty {
    padding: 55px 20px;
    text-align: center;
    color: var(--ard-muted);
}

@media (max-width: 991.98px) {
    .ard-section { padding: 55px 0; }
}

@media (max-width: 575.98px) {
    .ard-section { padding: 42px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
}

/* =========================================================
   ARD RUGS - PUBLIC / WEBSITE
   ========================================================= */

.ard-topbar {
    min-height: 26px;
    padding: 5px 0;
    background: var(--ard-primary-dark);
    color: #fff;
    font-size: .72rem;
}
.ard-topbar a { color: #fff; }

.ard-navbar {
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--ard-border);
    z-index: 1030;
}
.ard-navbar .navbar-brand img { max-height: 54px; }
.ard-navbar .nav-link {
    color: #282321;
    font-size: .9rem;
    font-weight: 500;
    padding: 1rem .85rem !important;
}
.ard-navbar .nav-link:hover,
.ard-navbar .nav-link.active { color: var(--ard-primary); }

.ard-icon-btn {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #24211f;
    border: 0;
    background: transparent;
    border-radius: 50%;
}
.ard-icon-btn:hover { background: var(--ard-primary-soft); color: var(--ard-primary); }

.ard-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 50px;
    background: var(--ard-primary);
    color: #fff;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}

.ard-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: #211612;
}
.ard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,12,9,.82), rgba(20,12,9,.35), rgba(20,12,9,.08));
    z-index: 1;
}
.ard-hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    color: #fff;
}
.ard-hero-content h1 { color: #fff; font-size: clamp(2.7rem, 5vw, 5rem); }
.ard-hero-content p { color: rgba(255,255,255,.9); max-width: 520px; }

.ard-feature-strip {
    border-bottom: 1px solid var(--ard-border);
    background: var(--ard-ivory);
}
.ard-feature-item {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 20px;
    border-right: 1px solid var(--ard-border);
}
.ard-feature-item:last-child { border-right: 0; }

.ard-category-card,
.ard-product-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ard-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--ard-transition), box-shadow var(--ard-transition);
}
.ard-category-card:hover,
.ard-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ard-shadow);
}
.ard-category-card img,
.ard-product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.ard-product-card .product-body { padding: 13px; }
.ard-product-card .product-title {
    color: #29231f;
    font-size: .92rem;
    font-weight: 600;
}
.ard-product-card .old-price {
    margin-left: 6px;
    color: #999;
    text-decoration: line-through;
    font-size: .82rem;
}
.ard-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    z-index: 2;
}
.ard-wishlist.active { color: var(--ard-primary); }

.ard-breadcrumb {
    padding: 15px 0;
    color: var(--ard-muted);
    font-size: .82rem;
}
.ard-breadcrumb a { color: #514a45; }

.ard-product-gallery {
    position: sticky;
    top: 90px;
}
.ard-product-main-image {
    overflow: hidden;
    border-radius: 8px;
    background: var(--ard-ivory);
}
.ard-product-main-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.ard-thumb {
    overflow: hidden;
    border: 1px solid var(--ard-border);
    border-radius: 6px;
    cursor: pointer;
}
.ard-thumb.active { border: 2px solid var(--ard-primary); }

.ard-size-option {
    min-width: 100px;
    padding: 11px 13px;
    border: 1px solid var(--ard-border);
    border-radius: 7px;
    background: #fff;
    text-align: center;
    cursor: pointer;
}
.ard-size-option:hover,
.ard-size-option.active {
    border-color: var(--ard-primary);
    color: var(--ard-primary);
    background: var(--ard-primary-soft);
}

.ard-color-swatch {
    width: 48px;
    height: 48px;
    padding: 2px;
    border: 1px solid var(--ard-border);
    border-radius: 6px;
    cursor: pointer;
}
.ard-color-swatch.active { border: 2px solid var(--ard-primary); }

.ard-cart-summary {
    position: sticky;
    top: 100px;
    background: var(--ard-ivory);
    border: 1px solid var(--ard-border);
    border-radius: var(--ard-radius);
    padding: 24px;
}

.ard-parallax {
    min-height: 420px;
    display: flex;
    align-items: center;
    background: center / cover fixed no-repeat;
}

.ard-testimonial {
    padding: 28px;
    border: 1px solid var(--ard-border);
    border-radius: var(--ard-radius);
    background: #fff;
}

.ard-footer {
    background: #1b1411;
    color: #d9d0ca;
}
.ard-footer h5 { color: #fff; font-family: var(--ard-body); font-weight: 600; }
.ard-footer a { color: #cfc4bc; }
.ard-footer a:hover { color: #fff; }
.ard-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 991.98px) {
    .ard-navbar .nav-link { padding: .65rem 0 !important; }
    .ard-hero { min-height: 450px; }
    .ard-feature-item { border-right: 0; border-bottom: 1px solid var(--ard-border); }
    .ard-product-gallery { position: static; }
}

@media (max-width: 575.98px) {
    .ard-hero { min-height: 420px; }
    .ard-hero-content h1 { font-size: 2.55rem; }
    .ard-cart-summary { position: static; }
    .ard-parallax { background-attachment: scroll; min-height: 340px; }
}
