/* ===== Jewelry theme - core layout ===== */

/* Reset-ish */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    background: #fff;
}

/* Header */
header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #f0f0f0;
}

/* Hamburger */
.navbar-toggler {
    display: none;
    /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

/* Logo */
.logo {
    flex: 0 0 auto;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 24px;
    letter-spacing: 0.5px;
}

/* Search (center) */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 420px;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 520px;
    min-width: 140px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background: #f9f9f9;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: #fff;
    border-color: #b0893b;
    outline: none;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
}

/* Nav links (right) */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #b0893b;
}

/* Cart badge */
.nav-links .cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #b0893b;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
}

/* Hero */
.hero-section {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    margin-bottom: 60px;
    position: relative;
}

.hero-section .text-center {
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background: #b0893b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-hero:hover {
    background: #8e6d2b;
}

/* Section Title */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    color: #222;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #b0893b;
    margin: 15px auto 0;
}

/* Category Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-image-wrapper {
    height: 250px;
    overflow: hidden;
    margin-bottom: 15px;
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.05);
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #333;
    margin: 10px 0;
}

.category-link {
    color: #b0893b;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.category-link:hover {
    text-decoration: underline;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.product-name a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.product-name a:hover {
    color: #b0893b;
}

.product-price {
    color: #b0893b;
    font-weight: 700;
    font-size: 16px;
}

/* Toast */
.toast {
    position: fixed;
    right: 20px;
    bottom: 30px;
    padding: 12px 20px;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    display: block;
}

.form-control:focus {
    border-color: #b0893b;
    outline: none;
}

.primary-button {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.primary-button:hover {
    background: linear-gradient(135deg, #c49d2f 0%, #9a7a24 100%);
}

/* Responsive */
@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-form {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
    }

    .nav-links {
        display: none;
    }

    .navbar-toggler {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section {
        height: 350px;
    }
}

/* Login Page Styles */
.login-container {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #333;
    margin: 0 0 10px;
}

.login-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label.required:after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.show-password-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.show-password-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #b0893b;
}

.show-password-toggle label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.forgot-password-link {
    font-size: 14px;
    color: #b0893b;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.captcha-container {
    margin-bottom: 20px;
}

.login-actions {
    text-align: center;
}

.primary-button.full-width {
    width: 100%;
    margin-bottom: 20px;
    font-size: 16px;
    padding: 14px;
}

.social-login-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Social Buttons Styling */
.social-login-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-login-links a:hover {
    background: #b0893b;
    color: #fff;
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #666;
    font-size: 14px;
}

.create-account-link {
    color: #b0893b;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.create-account-link:hover {
    text-decoration: underline;
}

.copyright-text {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .login-container {
        padding: 20px;
        margin: 20px;
    }

    .login-header h1 {
        font-size: 26px;
    }
}

/* ANTI-GRAVITY FIX */
.j-category-title-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    width: 100% !important;
    text-align: left !important;
}
.j-category-title {
    color: #001f3f !important;
    font-size: 2.25rem !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    width: auto !important;
}
.j-category-title::after {
    background: linear-gradient(90deg, #d4af37, #d97706) !important;
    left: 0 !important;
    transform: none !important;
}