/* Frontend Styles for Veloura Jewel */

:root {
    --primary-color: #d4af37;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #b8941f);
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #b8941f;
    border-color: #b8941f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card img {
    height: 200px;
    object-fit: cover;
}

/* Page Header */
.page-header {
    border-bottom: 1px solid #dee2e6;
}

/* Product Detail Page */
.product-images .main-image img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.product-info .price {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.product-features {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 0.5rem;
}

.product-features i {
    font-size: 1.5rem;
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Footer */
/*footer {
    background-color: var(--dark-bg) !important;
}*/

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .product-images .main-image img {
        height: 300px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success/Error Messages */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* ===== PRODUCT DETAIL PAGE (PDP) ===== */
:root {
    --gold-1: #b8860b;
    --gold-2: #c9a84c;
    --gold-3: #f5e6c8;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --border: #e8e0d5;
    --radius: 6px;
}

.pdp-crumb { font-size: 13px; color: var(--muted); padding: 18px 0 10px; }
.pdp-crumb a { color: var(--muted); text-decoration: none; }
.pdp-crumb a:hover { color: var(--gold-1); }
.pdp-crumb .sep { margin: 0 6px; }
.pdp-crumb .cur { color: var(--ink); }

/* Gallery */
.pdp-gallery { display: flex; gap: 12px; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 8px; width: 72px; flex-shrink: 0; }
.pdp-thumb { width: 72px; height: 72px; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--gold-2); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main { position: relative; flex: 1; border-radius: var(--radius); overflow: hidden; background: #faf8f5; }
.pdp-main img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; transition: transform .3s; }
.pdp-main:hover img { transform: scale(1.04); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--gold-1); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 3px 9px; border-radius: 3px; z-index: 2; }
.pdp-zoom-hint { position: absolute; bottom: 10px; right: 10px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.8); padding: 3px 7px; border-radius: 3px; }

/* Buy box */
.pdp-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.pdp-subline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.pdp-subline .stars { color: #c9a84c; letter-spacing: 1px; }
.pdp-sku { color: var(--muted); }

/* Price */
/*.pdp-price-wrap { background: var(--gold-3); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.pdp-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.pdp-price { font-size: 1.7rem; font-weight: 700; color: var(--ink); font-family: 'Cormorant Garamond', serif; }
.pdp-was { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.pdp-rate-lock { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.pdp-toggle { background: none; border: 1px solid var(--gold-2); color: var(--gold-1); font-size: 13px; padding: 5px 12px; border-radius: 3px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.pdp-toggle:hover { background: var(--gold-2); color: #fff; }
.pdp-breakdown { display: none; margin-top: 12px; }
.pdp-breakdown.open { display: block; }
.pdp-steps { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pdp-step { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.pdp-step:last-child { border-bottom: none; font-weight: 600; }*/

/* Options */
.pdp-opt-group { margin-bottom: 18px; }
.pdp-opt-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.pdp-opt-label .sel { font-weight: 400; color: var(--gold-1); text-transform: none; margin-left: 6px; }
/*.pdp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { border: 1.5px solid var(--border); background: #fff; color: var(--ink); font-size: 13px; padding: 6px 14px; border-radius: 3px; cursor: pointer; transition: all .15s; }
.opt-chip:hover, .opt-chip.active { border-color: var(--gold-1); background: var(--gold-1); color: #fff; }
.opt-chip.disabled { opacity: .4; cursor: not-allowed; }*/
.opt-swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.opt-swatch span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; display: block; transition: border-color .15s; }
.opt-swatch.active span, .opt-swatch:hover span { border-color: var(--gold-1); outline: 2px solid var(--gold-1); outline-offset: 2px; }
.opt-swatch[data-c="Yellow Gold"] span { background: #c7a24c; }
.opt-swatch[data-c="Rose Gold"] span { background: #d9a38a; }
.opt-swatch[data-c="White Gold"] span { background: #d9d9de; }
.pdp-size-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.size-guide-link { font-size: 12px; color: var(--gold-1); text-decoration: underline; white-space: nowrap; }*/

/* Actions */
.pdp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
/*.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button { background: none; border: none; width: 34px; height: 42px; font-size: 18px; cursor: pointer; color: var(--ink); transition: background .15s; }
.qty-stepper button:hover { background: var(--gold-3); }
.qty-stepper span { min-width: 32px; text-align: center; font-size: 15px; font-weight: 600; }*/



/* Trust */
.pdp-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.pdp-trust div { display: flex; align-items: center; gap: 5px; }

/* Meta row */
.pdp-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.pdp-share { display: flex; gap: 10px; }
.pdp-share a { color: var(--muted); transition: color .2s; }
.pdp-share a:hover { color: var(--gold-1); }

/* Tabs */
.pdp-tabs { margin-top: 40px; border-top: 1px solid var(--border); }
.pdp-tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
.pdp-tab-btn { background: none; border: none; padding: 14px 22px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s; }
.pdp-tab-btn.active, .pdp-tab-btn:hover { color: var(--gold-1); border-bottom-color: var(--gold-1); }
.pdp-tab-panel { display: none; padding: 24px 4px; font-size: 14px; line-height: 1.8; color: #444; }
.pdp-tab-panel.active { display: block; }
.pdp-tab-panel h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--ink); margin: 18px 0 8px; }
.pdp-tab-panel h4:first-child { margin-top: 0; }
.pdp-tab-panel ul { padding-left: 18px; }
.pdp-tab-panel li { margin-bottom: 4px; }
.pdp-note { background: var(--gold-3); border-left: 3px solid var(--gold-2); padding: 10px 14px; font-size: 13px; color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 16px; }

/* Related */
.pdp-related-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; text-decoration: none; color: inherit; display: block; }
.pdp-related-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }
.pdp-related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pdp-related-info { padding: 12px 14px; }
.pdp-related-name { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-related-price { font-size: 13px; color: var(--gold-1); font-weight: 600; }

@media (max-width: 767px) {
    .pdp-gallery { flex-direction: column-reverse; }
    .pdp-thumbs { flex-direction: row; width: 100%; }
    .pdp-thumb { width: 60px; height: 60px; }
    .pdp-actions { flex-direction: column; align-items: stretch; }
    .add-bag-btn, .btn-gold { text-align: center; justify-content: center; }
    .pdp-tab-btn { padding: 10px 14px; font-size: 13px; }
}

/* Wishlist heart button */
/*.product-wish { background: none; border: 1.5px solid var(--border); border-radius: var(--radius); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, background .2s; flex-shrink: 0; }
.pdp-main .product-wish { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.85); backdrop-filter: blur(4px); }
.product-wish svg { stroke: var(--muted); transition: stroke .2s, fill .2s; }
.product-wish:hover, .product-wish.on { border-color: #e05; background: #fff0f3; }
.product-wish.on svg { stroke: #e05; fill: #e05; }*/

/* ── Price dual-range slider ───────────────────────────────── */
.price-fg {
    background: #fff;
    border-radius: 12px;
    padding: 20px 18px 22px;
    border: 1px solid #ebebeb;
}
.price-fg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.price-fg-head h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #111;
    letter-spacing: -.2px;
}
.price-fg-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    transition: color .15s;
}
.price-fg-close:hover { color: #111; }
.price-inputs {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}
.price-input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.price-input-box label {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
}
.price-input-wrap {
    border: 1.5px solid #d6d6d6;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.price-input-wrap:focus-within {
    border-color: #1e2d40;
    box-shadow: 0 0 0 3px rgba(30,45,64,.08);
}
.price-input-wrap input[type=text] {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}
/* custom JS slider track */
.price-slider-wrap {
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    margin-top: 4px;
    user-select: none;
}
.price-slider-track {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
}
.price-slider-fill {
    position: absolute;
    height: 3px;
    background: #1e2d40;
    border-radius: 2px;
    pointer-events: none;
}
.price-slider-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1e2d40;
    box-shadow: 0 2px 8px rgba(0,0,0,.30);
    cursor: grab;
    transform: translate(-50%, -50%);
    top: 50%;
    transition: transform .1s;
    touch-action: none;
}
.price-slider-thumb:active { cursor: grabbing; transform: translate(-50%,-50%) scale(1.15); }
@media (max-width: 767px) {
    .price-slider-thumb { width: 28px; height: 28px; }
    .price-input-wrap input[type=text] { font-size: 13px; padding: 10px 10px; }
}

/* ── Pagination ─────────────────────────────────────────── */
.cat-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2.5rem 0 1.5rem;
}
.cat-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid #222;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    line-height: 1;
}
.cat-pagination .page-btn:hover {
    background: #222;
    color: #fff;
}
.cat-pagination .page-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
    font-weight: 700;
    pointer-events: none;
}
.cat-pagination .page-ellipsis {
    border-color: transparent;
    background: transparent;
    cursor: default;
    color: #888;
}
.cat-pagination .page-ellipsis:hover {
    background: transparent;
    color: #888;
}

/* ── Product card skeleton loader ───────────────────────── */
@keyframes sk-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.product-card--skeleton {
    pointer-events: none;
}
.sk-box,
.sk-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: sk-shimmer 1.4s infinite linear;
    border-radius: 4px;
}
.product-card--skeleton .product-media.sk-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px 6px 0 0;
}
.product-card--skeleton .product-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sk-line {
    height: 13px;
    width: 100%;
}
.sk-line--short {
    width: 55%;
    height: 11px;
}
.sk-line--price {
    width: 70%;
    height: 16px;
    margin-top: 4px;
}
