/* StyMetics NewSite — Reusable UI Components styling */

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-burgundy);
    color: var(--color-white);
    border: 1px solid var(--color-burgundy);
}

.btn-primary:hover {
    background-color: var(--color-burgundy-dk);
    border-color: var(--color-burgundy-dk);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-burgundy-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 1px solid var(--color-sand);
}

.btn-secondary:hover {
    background-color: var(--color-sand-lt);
    border-color: var(--color-sand-dark);
    color: var(--color-charcoal);
}

.btn-text {
    padding: 0.5rem 0;
    font-size: 0.7rem;
    color: var(--color-burgundy);
    border-bottom: 1px solid transparent;
    border-radius: 0;
}

.btn-text:hover {
    border-color: var(--color-burgundy);
    padding-left: 5px;
}

/* Storefront Button Styles */
.btn-purchase-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    background: var(--color-burgundy);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-sm, 4px);
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(99, 13, 22, 0.15);
}

.btn-purchase-add:hover {
    background: var(--color-burgundy-dk, #4a0a10);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 13, 22, 0.25);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    background: transparent;
    color: var(--color-charcoal);
    border: 1px solid rgba(45, 45, 45, 0.25);
    border-radius: var(--radius-sm, 4px);
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--color-charcoal);
    color: #ffffff !important;
    border-color: var(--color-charcoal);
}

.btn-sand {
    background: var(--color-sand);
    color: var(--color-charcoal);
    border: 1px solid var(--color-sand-dark);
}

.btn-sand:hover {
    background: var(--color-sand-dark);
    color: #ffffff;
}

.btn-dark-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--color-charcoal);
    color: #ffffff;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius-sm, 4px);
    transition: all 0.3s ease;
}

.btn-dark-lg:hover {
    background: var(--color-burgundy);
    color: #ffffff;
}

.btn-apply-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--color-charcoal);
    color: #ffffff;
    border: none;
    font-family: var(--font-nav);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-apply-price:hover {
    background: var(--color-burgundy);
}

/* === FORM INPUTS === */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: var(--font-nav);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-charcoal-lt);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-charcoal);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-burgundy);
    box-shadow: 0 0 0 3px var(--color-burgundy-glow);
    background-color: var(--color-white);
}

/* === TOAST ALERTS === */
.toast-container {
    position: fixed;
    top: 110px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: calc(100vw - 48px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.875rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(120%);
}

.toast-success {
    border-left: 4px solid var(--color-success);
    background-color: #f7fee7;
    color: #14532d;
}

.toast-error {
    border-left: 4px solid var(--color-error);
    background-color: #fef2f2;
    color: #7f1d1d;
}

.toast-info {
    border-left: 4px solid var(--color-info);
    background-color: #eff6ff;
    color: #1e3a8a;
}

.toast-warning {
    border-left: 4px solid var(--color-warning);
    background-color: #fffbeb;
    color: #78350f;
}

@media (max-width: 640px) {
    .toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    .toast {
        min-width: 0;
        width: 100%;
    }
}

/* === REUSABLE PRODUCT CARD (Unified for Shop, Category, Search, Home, Wishlist) === */
.product-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
    border: 1px solid rgba(215, 196, 177, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    font-family: var(--font-nav);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.product-badge--sale,
.product-badge-sale {
    background: var(--color-burgundy);
    color: #ffffff;
}

.product-badge--new,
.product-badge-new {
    background: var(--color-charcoal);
    color: #ffffff;
}

.product-badge--hot {
    background: #b89758;
    color: #ffffff;
}

.product-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.product-card__image-wrap,
.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-sand-xlt, #f7f3ef);
}

.product-card__image,
.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image,
.product-card:hover .product-image-wrapper img {
    transform: scale(1.06);
}

.product-card__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn,
.wishlist-toggle {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--color-charcoal);
}

.product-action-btn:hover,
.wishlist-toggle:hover {
    background: var(--color-burgundy);
    color: #ffffff;
    border-color: var(--color-burgundy);
}

.wishlist-toggle.active {
    color: var(--color-burgundy);
}

.product-card__body,
.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__brand,
.product-brand {
    font-family: var(--font-nav);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-sand-dark, #a08060);
    margin-bottom: 4px;
}

.product-card__name,
.product-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-charcoal);
    font-weight: 600;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card__name:hover,
.product-title:hover {
    color: var(--color-burgundy);
}

.star-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.star-icon {
    color: rgba(26, 26, 26, 0.2);
}

.star-icon.filled {
    color: #d97706;
}

.review-count {
    font-family: var(--font-nav);
    font-size: 10px;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.45);
    margin-left: 4px;
}

.product-card__price-row,
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card__price,
.product-price {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-burgundy);
}

.product-card__original-price,
.product-price-original {
    font-size: 0.85rem;
    color: rgba(26, 26, 26, 0.4);
    text-decoration: line-through;
}

.product-card__add-btn {
    width: 100%;
    margin-top: auto;
    background: var(--color-charcoal);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    font-family: var(--font-nav);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: var(--radius-sm, 4px);
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.product-card__add-btn:hover {
    background: var(--color-burgundy);
    color: #ffffff;
}

/* === CART SPLIT LAYOUT === */
.cart-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-split-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-nav);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-charcoal-lt);
    margin-bottom: 2rem;
}

.breadcrumb a:hover {
    color: var(--color-burgundy);
}

.breadcrumb-separator {
    opacity: 0.4;
}

.breadcrumb-current {
    color: var(--color-burgundy);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--color-white);
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pagination-item:hover:not(.disabled) {
    border-color: var(--color-burgundy);
    color: var(--color-burgundy);
}

.pagination-item.active {
    background-color: var(--color-burgundy);
    border-color: var(--color-burgundy);
    color: var(--color-white);
}

.pagination-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === ACCORDION === */
.accordion-item {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--color-sand-xlt);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    color: var(--color-charcoal-lt);
    line-height: 1.7;
}

/* === LOADER / SPINNER === */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-burgundy-glow);
    border-top-color: var(--color-burgundy);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === SKELETON LOADER === */
.skeleton {
    background: linear-gradient(90deg, #F0ECE7 25%, #E6E0D9 50%, #F0ECE7 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === GLOBAL PAGE LOADER (Only active when triggered, default hidden) === */
.stymetics-page-loader {
    display: none; /* Never block ordinary page navigations */
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.stymetics-page-loader.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.stymetics-page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stymetics-page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 240px;
}

.stymetics-loader-brand-box {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stymetics-loader-logo {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    display: block;
}

.stymetics-loader-spinner-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(99, 13, 22, 0.12);
    border-top-color: var(--color-burgundy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.stymetics-loader-text {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-burgundy);
    text-transform: uppercase;
}

.stymetics-loader-line {
    width: 120px;
    height: 2px;
    background: rgba(99, 13, 22, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.stymetics-loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: var(--color-burgundy);
    animation: loaderBar 1.2s ease-in-out infinite alternate;
}

@keyframes loaderBar {
    from { transform: translateX(-50%); }
    to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    .stymetics-loader-spinner-ring,
    .stymetics-loader-bar {
        animation: none;
    }
}

/* === REUSABLE PAGE BANNER (Pixel-Accurate to Reference Site) === */
.page-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-banner--catalog {
    min-height: 250px;
    height: 35vh;
    max-height: 350px;
    background-color: var(--color-sand-xlt, #F7F3EF);
}

.page-banner--search {
    min-height: 280px;
    height: 40vh;
    max-height: 400px;
    background-color: var(--color-charcoal, #2D2D2D);
}

.page-banner--contact {
    min-height: 320px;
    height: 45vh;
    max-height: 400px;
    background-color: #ffffff;
}

.page-banner--editorial {
    padding: 5rem 0 4rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-sand-lt, #EDE4DA);
}

.page-banner__bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.page-banner__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-banner__bg-img--wash {
    opacity: 0.18;
    filter: grayscale(100%);
}

.page-banner__bg-img--grayscale {
    opacity: 0.28;
    filter: grayscale(100%);
}

.page-banner__bg-img--search {
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.7s ease;
}

.page-banner:hover .page-banner__bg-img--search {
    filter: grayscale(0%) brightness(0.85);
}

.page-banner__overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.page-banner__overlay-subtle {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
}

.page-banner__content {
    position: relative;
    z-index: 10;
    padding: 2rem 1.5rem;
    max-width: 900px;
}

.page-banner__title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-banner__title--dark {
    color: var(--color-charcoal, #2D2D2D);
}

.page-banner__title--light {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-banner__title--editorial {
    color: var(--color-charcoal, #2D2D2D);
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    margin-bottom: 1.5rem;
}

.page-banner__eyebrow {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: 1.25rem;
}

.page-banner__subtitle-tag {
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-charcoal-lt, #4A4A4A);
    opacity: 0.8;
}

.page-banner__desc {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-charcoal-lt, #4A4A4A);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-banner__breadcrumbs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-charcoal-lt, #4A4A4A);
    margin-top: 0.5rem;
}

.page-banner__breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-banner__breadcrumbs a:hover {
    color: var(--color-burgundy);
}

.page-banner__breadcrumbs .sep {
    opacity: 0.4;
    font-size: 10px;
}

.page-banner__breadcrumbs .curr {
    color: var(--color-burgundy);
}

/* Glass Pill Breadcrumbs for Search */
.page-banner__breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.65rem 1.75rem;
    border-radius: 9999px;
    font-family: var(--font-nav);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.page-banner__breadcrumb-pill a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-banner__breadcrumb-pill a:hover {
    color: var(--color-sand);
}

.page-banner__breadcrumb-pill .pill-sep {
    opacity: 0.5;
}

.page-banner__breadcrumb-pill .pill-active {
    color: var(--color-sand-lt);
}

/* === CONTACT PAGE LAYOUT (Pixel-Accurate to Reference) === */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-layout-grid {
        grid-template-columns: 5fr 7fr;
        gap: 4.5rem;
    }
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--color-sand-xlt, #F7F3EF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm, 4px);
    color: var(--color-burgundy);
}

.contact-quick-box {
    background: var(--color-sand-xlt, #F7F3EF);
    padding: 2rem;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--color-sand-lt, #EDE4DA);
}

.contact-form-panel {
    background: #ffffff;
    border: 1px solid var(--color-sand-lt, #EDE4DA);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-sm, 4px);
}

@media (min-width: 768px) {
    .contact-form-panel {
        padding: 3rem 3.5rem;
    }
}
