/* ===== SHARED STYLES for Plusvivid ===== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Karla', Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #767676;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1265px; margin: 0 auto; padding: 0 15px; }

/* HEADER */
.site-header {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-logo { font-size: 22px; font-weight: 700; color: #333; letter-spacing: -0.5px; }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 13px; font-weight: 500; color: rgba(51,51,51,0.7); text-transform: uppercase; letter-spacing: 0.3px; transition: color 0.2s; white-space: nowrap; }
.main-nav a:hover { color: #333; }
.header-icons { display: flex; align-items: center; gap: 18px; font-size: 18px; }
.header-icons a { color: rgba(51,51,51,0.7); transition: color 0.2s; position: relative; }
.header-icons a:hover { color: #333; }
.cart-count {
    position: absolute; top: -8px; right: -10px;
    background: #c01157; color: #fff;
    font-size: 10px; width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.mobile-menu-toggle { display: none; font-size: 22px; color: rgba(51,51,51,0.7); cursor: pointer; }

/* PRODUCT CARD */
.product-card { text-align: center; position: relative; }
.product-card:hover .product-img-wrap .img-secondary { opacity: 1; }
.product-card:hover .product-img-wrap .img-primary { opacity: 0; }
.product-img-wrap {
    position: relative; aspect-ratio: 1/1;
    overflow: hidden; background: #f9f9f9; margin-bottom: 12px;
}
.product-img-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.5s ease;
}
.product-img-wrap .img-primary { opacity: 1; z-index: 1; }
.product-img-wrap .img-secondary { opacity: 0; z-index: 2; }
.product-actions {
    position: absolute; bottom: 50%; left: 0; right: 0;
    transform: translateY(20px); opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-actions a, .product-actions button {
    width: 38px; height: 38px;
    border-radius: 50%; background: #fff; color: #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, color 0.2s; border: none; cursor: pointer;
}
.product-actions a:hover, .product-actions button:hover { background: #c01157; color: #fff; }
.product-category { font-size: 13px; color: #767676; margin-bottom: 4px; display: block; }
.product-card-title { font-size: 14px; font-weight: 400; color: #333; margin-bottom: 6px; display: block; transition: color 0.2s; }
.product-card-title:hover { color: #c01157; }
.product-card-price { color: #c01157; font-size: 14px; font-weight: 500; }
.badge-new {
    position: absolute; top: 10px; left: 10px; z-index: 5;
    background: #c01157; color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    padding: 3px 10px;
}
.catc-btn {
    display: inline-block; margin-top: 8px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: #fff; background: #c01157;
    padding: 8px 20px; transition: background 0.2s;
}
.catc-btn:hover { background: #9e0e47; }

/* SLIDE PANELS */
.slide-panel {
    position: fixed; top: 0; right: -340px; width: 340px; height: 100vh;
    background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    z-index: 2000; transition: right 0.35s ease;
    padding: 30px; overflow-y: auto;
}
.slide-panel.open { right: 0; }
.slide-panel .panel-close { position: absolute; top: 20px; right: 20px; font-size: 20px; color: #333; cursor: pointer; }
.slide-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.slide-overlay.active { opacity: 1; pointer-events: auto; }
.panel-heading { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.panel-empty { text-align: center; padding: 60px 0; color: #aaa; }
.panel-empty i { font-size: 40px; display: block; margin-bottom: 12px; }

/* FOOTER */
.site-footer { background: #fff; border-top: 1px solid rgba(0,0,0,0.06); padding: 25px 0; text-align: center; font-size: 13px; color: #767676; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.payment-icons img { height: 22px; opacity: 0.7; }

/* SCROLL TO TOP */
.scroll-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 44px; height: 44px; background: #fff; color: #333;
    border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; opacity: 0; pointer-events: none;
    transition: opacity 0.3s, background 0.2s; z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: #c01157; color: #fff; }

/* TOAST */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #333; color: #fff; padding: 12px 28px;
    font-size: 14px; z-index: 4000; opacity: 0;
    transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .slide-panel { width: 300px; right: -300px; }
    .footer-inner { flex-direction: column; gap: 12px; }
}
