/* ===========================
   JEWELSTORE - MAIN STYLESHEET
   =========================== */

:root {
    --gold: #b8860b;
    --gold-light: #d4a537;
    --dark: #1a1a1a;
    --black: #111111;
    --white: #ffffff;
    --gray-light: #f7f5f2;
    --gray: #888888;
    --border: #e5e0d8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--black);
    color: var(--gold-light);
    text-align: center;
    font-size: 13px;
    padding: 6px 10px;
    letter-spacing: 0.5px;
}

/* ---------- Header ---------- */
header.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--dark);
}
.logo span { color: var(--gold); }
.logo small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 2px; color: var(--gray); }

nav.main-nav ul {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
nav.main-nav a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--dark);
    transition: color .2s;
}
nav.main-nav a:hover { color: var(--gold); }

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-icons a {
    position: relative;
    font-size: 20px;
    color: var(--dark);
}
.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Category strip ---------- */
.category-strip {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    background: var(--gray-light);
}
.category-strip a {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: var(--dark);
}
.category-strip a:hover { color: var(--gold); }

/* ---------- Hero Banner ---------- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.hero-grid a { position: relative; display: block; overflow: hidden; }
.hero-grid img { width: 100%; height: 380px; object-fit: cover; transition: transform .4s; }
.hero-grid a:hover img { transform: scale(1.03); }
.hero-label {
    position: absolute;
    bottom: 24px; left: 24px;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 8px 20px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: var(--dark);
    color: #fff;
    padding: 14px 10px;
    font-size: 13px;
    text-align: center;
    gap: 10px;
}
.trust-strip span { padding: 4px 14px; }

/* ---------- Section Title ---------- */
.section-title {
    text-align: center;
    margin: 50px 0 28px;
}
.section-title h2 {
    font-size: 26px;
    letter-spacing: 1px;
    font-weight: 800;
    text-transform: uppercase;
}
.section-title .underline {
    width: 60px; height: 3px; background: var(--gold);
    margin: 10px auto 0;
}

/* ---------- Product Grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    padding: 0 0 20px;
}
.product-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
    position: relative;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.product-card .img-wrap { position: relative; overflow: hidden; background: var(--gray-light); }
.product-card img { width: 100%; height: 260px; object-fit: cover; }
.product-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--gold); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 3px; letter-spacing: 0.5px;
}
.product-tag.new { background: #2e7d32; }
.product-info { padding: 14px; }
.product-info h3 {
    font-size: 14px; font-weight: 600; height: 40px;
    overflow: hidden; margin-bottom: 8px;
}
.price-row { display: flex; align-items: center; gap: 8px; }
.price-new { font-size: 16px; font-weight: 800; color: var(--dark); }
.price-old { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.discount-pct { font-size: 11px; color: #2e7d32; font-weight: 700; }

.view-all-btn { text-align: center; margin: 20px 0 40px; }
.view-all-btn a, .btn {
    display: inline-block;
    background: var(--dark);
    color: #fff !important;
    padding: 12px 34px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.view-all-btn a:hover, .btn:hover { background: var(--gold); }
.btn-outline {
    background: transparent; color: var(--dark) !important;
    border: 1px solid var(--dark);
}
.btn-outline:hover { background: var(--dark); color: #fff !important; }

/* ---------- Feature Icons ---------- */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--gray-light);
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
}
.features-strip h4 { font-size: 14px; margin: 10px 0 6px; letter-spacing: .5px; }
.features-strip p { font-size: 12.5px; color: var(--gray); }
.feature-icon { font-size: 30px; color: var(--gold); }
@media (max-width: 768px) { .features-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--black);
    color: #ccc;
    padding: 50px 20px 20px;
    font-size: 13.5px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .5px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 18px;
    font-size: 12px;
    color: #888;
}
.social-icons { display: flex; gap: 14px; margin-top: 14px; }
.social-icons a {
    width: 34px; height: 34px; border-radius: 50%;
    background: #222; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}
.social-icons a:hover { background: var(--gold); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 16px 0; font-size: 13px; color: var(--gray);
}
.breadcrumb a { color: var(--gold); }

/* ---------- Page banner ---------- */
.page-banner {
    background: var(--gray-light);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}
.page-banner h1 { font-size: 26px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Filters bar ---------- */
.collection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
select, input[type=text], input[type=email], input[type=tel], input[type=password], textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

/* ---------- Product Detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 30px 0 60px;
}
.product-detail .main-image { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.product-detail .main-image img { width: 100%; height: 480px; object-fit: cover; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb-row img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.product-detail h1 { font-size: 24px; margin-bottom: 10px; }
.product-detail .sku { color: var(--gray); font-size: 13px; margin-bottom: 14px; }
.product-detail .price-row { font-size: 20px; margin-bottom: 20px; }
.product-detail .price-new { font-size: 26px; }
.size-options { margin: 20px 0; }
.size-options .opt {
    display: inline-block; border: 1px solid var(--border);
    padding: 8px 16px; margin: 4px 6px 4px 0; border-radius: 4px;
    cursor: pointer; font-size: 13px;
}
.size-options .opt.active, .size-options .opt:hover { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.qty-box { display: flex; align-items: center; gap: 0; margin: 20px 0; width: fit-content; border: 1px solid var(--border); border-radius: 4px; }
.qty-box button { width: 38px; height: 38px; background: var(--gray-light); border: none; cursor: pointer; font-size: 18px; }
.qty-box input { width: 50px; text-align: center; border: none; }
.action-row { display: flex; gap: 12px; margin: 20px 0; }
.product-desc { margin-top: 24px; font-size: 14px; color: #444; }

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; gap: 20px; }
    .product-detail .main-image img { height: 320px; }
}

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.cart-summary { max-width: 400px; margin-left: auto; background: var(--gray-light); padding: 24px; border-radius: 6px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.cart-summary .total-row { font-size: 18px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 12px; }
.empty-state { text-align: center; padding: 60px 20px; }

/* ---------- Forms / Static pages ---------- */
.static-page { max-width: 850px; margin: 0 auto; padding: 20px 0 60px; }
.static-page h2 { margin: 24px 0 12px; font-size: 20px; }
.static-page p, .static-page li { margin-bottom: 10px; font-size: 14.5px; color: #333; }
.static-page ul { padding-left: 20px; list-style: disc; }

.form-box { max-width: 500px; margin: 0 auto; padding: 30px; border: 1px solid var(--border); border-radius: 8px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.two-col-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 30px 0 60px; }
@media (max-width: 900px) { .two-col-form { grid-template-columns: 1fr; } }

.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c1; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

.track-box { max-width: 500px; margin: 0 auto; text-align: center; }
.order-status-track { display: flex; justify-content: space-between; margin: 30px 0; position: relative; }
.order-status-track::before { content:''; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--border); }
.status-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.status-step .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--border); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 13px; }
.status-step.done .dot { background: var(--gold); }
.status-step span { font-size: 11.5px; }

@media (max-width: 480px) {
    .header-inner { flex-direction: column; }
    nav.main-nav ul { justify-content: center; gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
}
