/* ===================================================
   ArtStroke – Custom Stylesheet (Bootstrap 5 build)
   =================================================== */

/* --- Google Fonts already loaded via header --- */

:root {
    --accent:      #e05c00;
    --accent-dark: #b84800;
    --dark:        #1a1a1a;
    --light-bg:    #fafafa;
    --card-shadow: 0 4px 18px rgba(0,0,0,.08);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    background-color: #f5f4f2;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--accent-dark); }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background-color: var(--dark);
}
.top-link {
    color: #ccc;
    font-size: .85rem;
    transition: color .2s;
}
.top-link:hover { color: #fff; }
.badge-cart {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: .65rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.search-form .form-control {
    border-radius: 20px;
    border-color: #555;
    background: #2c2c2c;
    color: #ddd;
    min-width: 220px;
}
.search-form .form-control::placeholder { color: #888; }
.search-form .form-control:focus {
    background: #333;
    color: #fff;
    border-color: var(--accent);
    box-shadow: none;
}

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav {
    background-color: #fff;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.main-nav .nav-link {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #222;
    padding: .75rem 1rem;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--accent); }
.main-nav .dropdown-menu {
    border: 0;
    box-shadow: var(--card-shadow);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 6px 6px;
    padding: .5rem 0;
}
.main-nav .dropdown-item {
    font-size: .82rem;
    padding: .45rem 1.2rem;
}
.main-nav .dropdown-item:hover {
    background-color: var(--accent);
    color: #fff;
}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
    position: relative;
    overflow: hidden;
    max-height: 220px;
    margin-bottom: 2rem;
}
.page-banner img {
    width: 100%;
    object-fit: cover;
    filter: brightness(.6);
}
.page-banner .banner-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-banner .banner-title h2 {
    color: #fff;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: relative;
    padding-bottom: .6rem;
    margin-bottom: 1.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title .accent { color: var(--accent); }

/* ============================================================
   PRODUCT CARD — Redesigned with animations & hover effects
   ============================================================ */

/* Card enter animation on page load */
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    transition: transform .35s cubic-bezier(.25,.8,.25,1),
                box-shadow .35s cubic-bezier(.25,.8,.25,1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardFadeUp .5s ease both;
    border: 1.5px solid rgba(0,0,0,.04);
}

/* Staggered entry delay per card */
.product-card:nth-child(1)  { animation-delay: .05s; }
.product-card:nth-child(2)  { animation-delay: .10s; }
.product-card:nth-child(3)  { animation-delay: .15s; }
.product-card:nth-child(4)  { animation-delay: .20s; }
.product-card:nth-child(5)  { animation-delay: .25s; }
.product-card:nth-child(6)  { animation-delay: .30s; }
.product-card:nth-child(7)  { animation-delay: .35s; }
.product-card:nth-child(8)  { animation-delay: .40s; }
.product-card:nth-child(9)  { animation-delay: .45s; }
.product-card:nth-child(10) { animation-delay: .50s; }
.product-card:nth-child(11) { animation-delay: .55s; }
.product-card:nth-child(12) { animation-delay: .60s; }

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 48px rgba(0,0,0,.16);
}

/* Glowing accent border on hover */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 3;
}
.product-card:hover::after { opacity: 1; }

/* ── Image wrapper ── */
.product-card .card-img-wrap {
    overflow: hidden;
    height: 230px;
    background: #f0eeeb;
    position: relative;
}
.product-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.25,.8,.25,1), filter .35s ease;
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.1);
    filter: brightness(.88);
}

/* Quick-view overlay that slides up on hover */
.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
    padding: 1rem .9rem .7rem;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.25,.8,.25,1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.product-card:hover .card-overlay { transform: translateY(0); }

.overlay-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s, transform .2s;
    border: none;
    cursor: pointer;
}
.overlay-btn-view {
    background: rgba(255,255,255,.95);
    color: #1a1a1a;
}
.overlay-btn-view:hover {
    background: #fff;
    color: var(--accent);
    transform: scale(1.1);
}
.overlay-btn-cart {
    background: var(--accent);
    color: #fff;
}
.overlay-btn-cart:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

/* Category tag */
.card-cat-tag {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .2rem .65rem;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(224,92,0,.45);
    transition: background .2s, transform .2s;
    white-space: nowrap;
    z-index: 4;
    line-height: 1.5;
}
.card-cat-tag:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Card body ── */
.product-card .card-body {
    padding: 1rem 1.1rem 1.1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #111;
    margin-bottom: .3rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .card-title a {
    color: #111;
    text-decoration: none;
    transition: color .2s;
}
.product-card .card-title a:hover { color: var(--accent); }

/* Price + cart row */
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .7rem;
    border-top: 1px solid #f0f0f0;
}

.product-card .card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    line-height: 1;
}
.card-price-label {
    display: block;
    font-size: .62rem;
    color: #aaa;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .1rem;
}

.product-card .btn-cart {
    font-size: .75rem;
    border-radius: 20px;
    padding: .38rem .9rem;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.product-card .btn-cart:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(224,92,0,.4);
}

/* ── Card image wrapper positional fix ── */
.card-img-wrap { position: relative; }

/* ============================================================
   HERO CAROUSEL (Index) — Legacy, replaced by custom slider
   ============================================================ */
.hero-carousel .carousel-item img {
    height: 420px;
    object-fit: cover;
    filter: brightness(.7);
}
.hero-carousel .carousel-caption { bottom: 20%; }
.hero-carousel .carousel-caption h3 {
    font-size: 2.4rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* ============================================================
   FEATURE BOXES (Index)
   ============================================================ */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform .25s;
}
.feature-box:hover { transform: translateY(-4px); }
.feature-box .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.feature-box h5 { font-size: .95rem; font-weight: 700; text-transform: uppercase; }

/* ============================================================
   QUOTE BANNER (Index)
   ============================================================ */
.quote-banner {
    background: var(--dark);
    color: #f0eeeb;
    padding: 2.5rem 1rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.detail-img {
    border-radius: 10px;
    width: 100%;
    object-fit: cover;
    max-height: 420px;
    box-shadow: var(--card-shadow);
}
.detail-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
}
.detail-meta dt { font-weight: 600; color: #555; }
.detail-meta dd { margin-bottom: .4rem; }

/* ============================================================
   CART TABLE
   ============================================================ */
.cart-table th {
    background: #f7f5f2;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .05em;
}
.cart-table td { vertical-align: middle; }
.cart-table .qty-input { width: 65px; text-align: center; }
.cart-summary {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}
.cart-summary .total-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================================
   FORMS (Register / Login / Checkout / Contact)
   ============================================================ */
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}
.form-card .form-label { font-weight: 600; font-size: .85rem; }
.form-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(224,92,0,.18);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: .55rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background .2s;
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ============================================================
   ALERT / FLASH MESSAGES
   ============================================================ */
.flash { border-radius: 8px; font-size: .9rem; }

/* ============================================================
   CLIENTS / PARTNERS
   ============================================================ */
.clients-section { background: #fff; padding: 2rem 0; }
.client-logo {
    filter: grayscale(1);
    opacity: .6;
    transition: all .3s;
    max-height: 50px;
    width: auto;
}
.client-logo:hover { filter: none; opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 3rem 0 0;
}
.footer-heading {
    color: #fff;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: .45rem; }
.footer-links a {
    color: #999;
    font-size: .88rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-desc { font-size: .85rem; line-height: 1.7; }
.social-icons a {
    color: #888;
    font-size: 1.2rem;
    margin-right: .7rem;
    transition: color .2s;
}
.social-icons a:hover { color: var(--accent); }
.footer-bottom {
    background: #111;
    padding: .9rem 0;
    color: #555;
    font-size: .78rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.page-link {
    color: var(--accent);
    border-color: #ddd;
}
.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   RESPONSIVE TWEAKS — Full mobile-first coverage
   ============================================================ */

/* ── Top bar ── */
@media (max-width: 767px) {
    .top-bar .container { flex-direction: column; gap: .5rem; text-align: center; }
    .search-form .form-control { min-width: 160px; }
    .top-bar .navbar-brand { display: none; }
    .top-links { justify-content: center; flex-wrap: wrap; }
}

/* ── Nav ── */
@media (max-width: 991px) {
    .main-nav .nav-link { padding: .55rem .75rem; }
}

/* ── Page banner ── */
@media (max-width: 575px) {
    .page-banner { max-height: 160px; margin-bottom: 1.5rem; }
    .page-banner .banner-title h2 { font-size: 1.35rem; }
}

/* ── Product grid ── */
@media (max-width: 575px) {
    .product-card .card-img-wrap { height: 180px; }
    .product-card .card-title { font-size: .8rem; }
    .product-card .card-price { font-size: .95rem; }
    .product-card .btn-cart { font-size: .7rem; padding: .3rem .7rem; }
}

/* ── Cart table ── */
@media (max-width: 767px) {
    .cart-table { font-size: .8rem; }
    .cart-table .qty-input { width: 50px; }
}

/* ── Forms ── */
@media (max-width: 575px) {
    .form-card { padding: 1.25rem; }
}

/* ── Feature boxes ── */
@media (max-width: 575px) {
    .feature-box { padding: 1.4rem 1rem; }
}

/* ── Footer ── */
@media (max-width: 767px) {
    .site-footer { padding: 2rem 0 0; }
    .footer-heading { margin-top: 1rem; }
}

/* ── Index sections ── */
@media (max-width: 768px) {
    .about-img-accent { display: none; }
    .about-badge { left: .5rem; top: .5rem; }
    .about-img-main img { height: 260px; }
    .section-title-lg { font-size: 1.5rem; }
    .stat-num { font-size: 2rem; }
    .cta-title { font-size: 1.5rem; }
    .cta-section { padding: 3rem 0; }
    .about-section { padding: 3rem 0; }
    .vm-section { padding: 3rem 0; }
    .testimonials-section { padding: 3rem 0; }
    .stats-section .row { flex-direction: row; }
    .stat-box { border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.05); }
}
@media (max-width: 575px) {
    .stat-box { border-right: none; padding: 1.8rem .75rem; }
    .stat-num { font-size: 1.8rem; }
    .stat-label { font-size: .68rem; }
    .cta-title { font-size: 1.25rem; }
    .cta-btn-primary, .cta-btn-secondary { padding: .6rem 1.4rem; font-size: .85rem; width: 100%; justify-content: center; }
    .vm-card { padding: 1.5rem 1.2rem; }
    .testimonial-card { padding: 1.4rem 1.2rem; }
    .section-title-lg { font-size: 1.3rem; }
    .section-eyebrow { font-size: .68rem; }
}

/* ── Gallery ── */
@media (max-width: 575px) {
    .gallery-grid { columns: 2; column-gap: 8px; }
    .gallery-grid .g-item { margin-bottom: 8px; }
    .gal-page a, .gal-page span { min-width: 34px; height: 34px; font-size: .78rem; }
}

/* ── Categories page ── */
@media (max-width: 575px) {
    .cat-card { padding: 1.5rem 1rem 1.2rem; }
    .cat-icon-wrap { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* ── Admin panel sidebar (already responsive via its own inline styles) ── */
