/* ==========================================================================
   EMERALD WALL ART & FRAMES — INNER PAGES / SHOP / CART STYLES
   Loaded after style.css (core design system).
   ========================================================================== */

/* ------------------------------------------------------------------ Utils */
.text-emerald { color: var(--emerald-primary) !important; }
.text-gold { color: var(--gold-text) !important; }
.object-fit-cover { object-fit: cover; }
.pointer-events-none { pointer-events: none; }
.z-1 { z-index: 1; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.cursor-pointer { cursor: pointer; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.animate-bounce { animation: cartBounce 0.8s ease; }
@keyframes cartBounce {
    0%, 100% { transform: translate(50%, -50%) scale(1); }
    40% { transform: translate(50%, -50%) scale(1.55); }
    70% { transform: translate(50%, -50%) scale(0.9); }
}

/* ------------------------------------------------------------ Search bar */
.search-bar-collapse {
    background-color: #04302a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.search-inline-form .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}
.search-inline-form .form-control::placeholder { color: rgba(255, 255, 255, 0.55); }
.search-inline-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-accent);
    color: #fff;
    box-shadow: none;
}

/* ---------------------------------------------------------- Flash alerts */
.flash-alert { border: 0; border-left: 4px solid var(--gold-accent); font-size: 0.92rem; }

/* ------------------------------------------------------------- Page hero */
.page-hero {
    background:
        linear-gradient(120deg, rgba(3, 33, 27, 0.96), rgba(9, 51, 44, 0.92)),
        url('../assets/images/hero_gold_silk.jpg') center/cover no-repeat;
    color: #fff;
    padding: 3.25rem 0 2.75rem;
}
.page-hero .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.page-hero .breadcrumb-item a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active,
.page-hero .breadcrumb-item { color: rgba(255, 255, 255, 0.9); }
.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
}
.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    font-size: 0.98rem;
    margin-top: 0.6rem;
}

/* -------------------------------------------------------- Category chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--emerald-primary); color: var(--emerald-primary); }
.filter-chip.is-active {
    background: var(--emerald-primary);
    border-color: var(--emerald-primary);
    color: #fff;
}
.category-intro { background: var(--bg-light); border-bottom: 1px solid var(--border-color); }

/* ----------------------------------------------------------- Shop layout */
.shop-filters .form-label { font-size: 0.85rem; color: var(--text-primary); }
.shop-filters .form-select,
.shop-filters .form-control { font-size: 0.9rem; }
.shop-filters .form-select:focus,
.shop-filters .form-control:focus { border-color: var(--emerald-accent); box-shadow: 0 0 0 0.18rem rgba(15, 77, 67, 0.12); }

.pagination .page-link {
    color: var(--emerald-primary);
    border-radius: 0.4rem !important;
    margin: 0 3px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}
.pagination .page-item.active .page-link {
    background-color: var(--emerald-primary);
    border-color: var(--emerald-primary);
    color: #fff;
}
.pagination .page-item.disabled .page-link { color: #adb5bd; }

.empty-state { background: #fff; border: 1px dashed var(--border-color); border-radius: 0.75rem; }

/* ---------------------------------------------------------- Product card */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(3, 33, 27, 0.12);
    border-color: rgba(15, 77, 67, 0.35);
}
.product-card-media {
    display: block;
    aspect-ratio: 4 / 3.4;
    background: var(--bg-card-greige);
    overflow: hidden;
}
.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--emerald-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    z-index: 2;
}
.product-badge.is-soft { background: #a7f3d0; color: #065f46; }
.product-card-quick {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 14px);
    background: rgba(3, 33, 27, 0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    opacity: 0;
    transition: all 0.25s ease;
    white-space: nowrap;
    pointer-events: none;
}
.product-card:hover .product-card-quick { opacity: 1; transform: translate(-50%, 0); }
.product-card-body { padding: 1rem 1.1rem 1.15rem; }
.product-card-category {
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold-text);
    font-weight: 600;
}
.product-card-title { font-size: 1rem; font-weight: 600; margin: 0.35rem 0 0.3rem; line-height: 1.3; }
.product-card-title a { color: var(--text-primary); text-decoration: none; }
.product-card-title a:hover { color: var(--emerald-accent); }
.product-card-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-price { font-weight: 700; color: var(--emerald-primary); font-size: 1.02rem; }
.btn-add-cart {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--emerald-primary);
    background: var(--emerald-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-add-cart:hover:not(:disabled) { background: var(--emerald-accent); transform: scale(1.08); }
.btn-add-cart:disabled { opacity: 0.4; cursor: not-allowed; }

/* ------------------------------------------------------ Product detail */
.product-gallery .main-frame-preview-box { background: var(--bg-card-greige); padding: 1rem; border-radius: 0.75rem; }
.product-gallery .main-product-img { max-height: 520px; object-fit: contain; }
.gallery-thumbs .gallery-thumb {
    width: 84px;
    height: 84px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-card-greige);
    transition: border-color 0.2s ease;
}
.gallery-thumbs .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .gallery-thumb.active,
.gallery-thumbs .gallery-thumb:hover { border-color: var(--emerald-primary); }

.qty-stepper { width: fit-content; }
.qty-btn {
    width: 38px;
    height: 40px;
    border: 0;
    background: var(--bg-light);
    font-size: 1.05rem;
    color: var(--emerald-primary);
    transition: background 0.2s ease;
}
.qty-btn:hover { background: var(--bg-card-greige); }
.qty-input { width: 56px; height: 40px; border: 0; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-info-list li span { color: var(--text-muted); }
.product-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 0;
    margin-right: 1.4rem;
}
.product-tabs .nav-link.active {
    color: var(--emerald-primary);
    background: transparent;
    border-bottom-color: var(--gold-accent);
}

/* ------------------------------------------------------------- Cart page */
.cart-line { background: #fff; }
.cart-line:last-of-type { border-bottom: 0 !important; }
.cart-line-media {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-card-greige);
    display: block;
}
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-title { font-weight: 600; color: var(--text-primary); text-decoration: none; display: block; margin-bottom: 0.15rem; }
.cart-line-title:hover { color: var(--emerald-accent); }
.cart-line-qty { width: 96px; text-align: center; }
.cart-line-total { min-width: 110px; }

.summary-row .progress { background: var(--bg-card-greige); border-radius: 999px; }

/* ------------------------------------------------------------ Checkout */
.checkout-thumb { width: 54px; height: 54px; object-fit: cover; flex: 0 0 54px; }
.payment-option { cursor: pointer; transition: all 0.2s ease; background: var(--bg-light); }
.payment-option:hover { border-color: var(--emerald-accent) !important; }
.payment-option input:checked ~ span strong { color: var(--emerald-primary); }
.payment-option:has(input:checked) {
    border-color: var(--emerald-primary) !important;
    background: rgba(15, 77, 67, 0.06);
    box-shadow: 0 0 0 1px var(--emerald-primary) inset;
}
#checkoutForm .form-control:focus,
#checkoutForm .form-select:focus,
#contactForm .form-control:focus,
#contactForm .form-select:focus { border-color: var(--emerald-accent); box-shadow: 0 0 0 0.18rem rgba(15, 77, 67, 0.12); }

/* ------------------------------------------------------- Order success */
.success-icon-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ----------------------------------------------------------- Contact us */
.contact-info-card { box-shadow: 0 10px 30px rgba(3, 33, 27, 0.06); }
.contact-method { align-items: center; }
.contact-method:hover strong { color: var(--emerald-accent); }
.contact-method-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: rgba(15, 77, 67, 0.08);
    color: var(--emerald-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.location-banner {
    min-height: 260px;
    background:
        linear-gradient(100deg, rgba(3, 33, 27, 0.94), rgba(3, 33, 27, 0.55)),
        url('../assets/images/hero_living_room.jpg') center/cover no-repeat;
}

/* -------------------------------------------------------- About / steps */
.about-img-tall { height: 100%; min-height: 260px; object-fit: cover; }
.step-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    position: relative;
    transition: all 0.25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(3, 33, 27, 0.1); }
.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-accent);
    color: var(--emerald-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon {
    width: 60px;
    height: 60px;
    margin-top: 8px;
    border-radius: 50%;
    background: rgba(15, 77, 67, 0.08);
    color: var(--emerald-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.feature-checklist li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.42rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.feature-checklist i { color: #10b981; }

/* ------------------------------------------------------ Wall stickers */
.coming-soon-banner { background: var(--bg-card-greige); border: 1px dashed var(--gold-accent); }

/* --------------------------------------------------------- FAQ accordion */
.emerald-accordion .accordion-item { border: 1px solid var(--border-color); border-radius: 0.6rem !important; overflow: hidden; margin-bottom: 0.75rem; }
.emerald-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--text-primary);
    background: #fff;
    box-shadow: none;
}
.emerald-accordion .accordion-button:not(.collapsed) {
    background: rgba(15, 77, 67, 0.06);
    color: var(--emerald-primary);
    box-shadow: none;
}
.emerald-accordion .accordion-button:focus { box-shadow: none; }
.emerald-accordion .accordion-body { font-size: 0.92rem; }

/* --------------------------------------------------------------- 404 */
.error-illustration i { font-size: 4.5rem; color: var(--bg-card-greige); }
.error-illustration { color: var(--bg-card-greige); }

/* -------------------------------------------------------------- Toast */
.emerald-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: var(--emerald-primary);
    color: #fff;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 12px 30px rgba(3, 33, 27, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    pointer-events: none;
    max-width: calc(100vw - 40px);
}
.emerald-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.emerald-toast.is-error { background: #b91c1c; }

/* ------------------------------------------------- Gold swatch variant */
.swatch-gold { background: linear-gradient(135deg, #d4af37, #f7e08a) !important; }

/* -------------------------------------------------------------- Footer */
.footer-links li a,
.footer-contact li a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-links li a:hover,
.footer-contact li a:hover { color: var(--gold-accent); }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 991.98px) {
    .nav-actions .btn-whatsapp-header { display: none; }
}
@media (max-width: 767.98px) {
    .cart-line { flex-wrap: wrap; }
    .cart-line-total { min-width: auto; }
    .page-hero { padding: 2.25rem 0 2rem; }
}

/* ==========================================================================
   PAGE PRELOADER
   ========================================================================== */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, #0f4d43 0%, #032520 55%, #021a15 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}
.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: preloaderFloat 1.8s ease-in-out infinite;
}
.preloader-logo {
    width: 132px;
    height: 132px;
    object-fit: contain;
    filter: drop-shadow(0 8px 26px rgba(212, 175, 55, 0.35));
    animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader-bar {
    display: block;
    width: 160px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}
.preloader-bar-fill {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    animation: preloaderSlide 1.1s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes preloaderFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes preloaderSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-46px, 0, 0); }
[data-reveal="right"] { transform: translate3d(46px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .preloader-inner, .preloader-logo, .preloader-bar-fill { animation: none !important; }
}

/* ==========================================================================
   CLIENT TESTIMONIALS
   ========================================================================== */
.testimonial-slider { position: relative; }
.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    height: 100%;
    box-shadow: 0 10px 28px rgba(3, 33, 27, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(3, 33, 27, 0.12);
}
.testimonial-card .quote-mark {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--gold-accent);
    opacity: 0.55;
    height: 34px;
}
.testimonial-card .testimonial-text {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--text-primary);
}
.testimonial-card .testimonial-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.testimonial-card .testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #032520;
    background: linear-gradient(135deg, #f4e3ae, #d4af37);
    flex: 0 0 42px;
}
.testimonial-card .testimonial-product {
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    color: var(--gold-text);
    text-transform: uppercase;
    font-weight: 600;
}
.testimonial-col { padding-bottom: 1rem; }

.testimonial-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gold-accent);
    background: transparent;
    color: var(--emerald-primary);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.testimonial-nav-btn:hover,
.testimonial-nav-btn:focus-visible {
    background: var(--emerald-primary);
    color: var(--gold-accent);
    transform: translateY(-2px);
    outline: none;
}
.testimonial-slider .carousel-item { transition: transform 0.6s ease-in-out; }

/* Dark section variant (canvas / about page) */
.canvas-wall-art-section .testimonial-nav-btn {
    color: var(--gold-accent);
    border-color: rgba(212, 175, 55, 0.65);
    background: rgba(255, 255, 255, 0.06);
}
.canvas-wall-art-section .testimonial-nav-btn:hover,
.canvas-wall-art-section .testimonial-nav-btn:focus-visible {
    background: var(--gold-accent);
    color: var(--emerald-deep);
}

/* ==========================================================================
   ADMIN LOGIN LOGO
   ========================================================================== */
.admin-login-logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.35));
}
