/* ======= Madorna Workshop Theme ======= */
:root {
    --black: #0b0b0b;
    --dark-gray: #1a1a1a;
    --gold: #d4af37;
    --antique-gold: #8a6f24;
    --white: #f2f2f2;
    --muted: #aaa;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--black);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212,175,55,0.08), transparent 70%);
    pointer-events: none;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 0.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212,175,55,0.4);
}

.tagline {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.coming-soon h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.coming-soon p {
    font-size: 1rem;
    color: var(--muted);
}

footer {
    margin-top: 3rem;
}

.follow {
    color: var(--antique-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.social:hover {
    color: var(--white);
    border-bottom: 1px solid var(--gold);
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(212,175,55,0.2); }
    to { text-shadow: 0 0 20px rgba(212,175,55,0.6); }
}

/* ===== Product Grid ===== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin-top: 3rem;
    justify-items: center;
}

.product-card {
    position: relative; /* REQUIRED for hover overlay */
    background-color: var(--dark-gray);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 1rem;
    cursor: pointer;
    width: 300px;
    overflow: hidden;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}

/* Default card hover (lift only) */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.3);
}

/* Product info (always visible) */
.product-info h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.15rem;
    color: var(--gold);
    margin: 0.5rem 0;
}

.product-info .price {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ===== Hover Description Layer ===== */

.product-hover {
    position: absolute;
    inset: 0;
    padding: 1.5rem;

    background: rgba(10, 10, 10, 0.92);
    color: #d6d6d6;

    display: flex;
    align-items: center;

    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;

    pointer-events: none;
}

.product-hover p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

/* Reveal on hover */
.product-card:hover .product-hover {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Click Behavior Layer ===== */

.product-config {
    position: absolute;
    inset: 0;
    padding: 1.5rem;

    background: rgba(10, 10, 10, 0.96);
    color: #e5e5e5;

    transform: translateY(100%);
    transition: transform 0.35s ease;

    z-index: 3;

    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.product-config form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.config-actions {
    margin-top: auto;
    padding-top: 1rem;
}
.product-card.is-config-open .product-config {
    transform: translateY(0);
}
.option-label {
    display: block;
}

.option-select {
    width: 100%;
    padding: 0.6rem 0.75rem;

    background-color: #111;
    color: var(--white);

    border: 1px solid rgba(212, 175, 55, 0.35);
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;

    cursor: pointer;

    /* remove OS chrome */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* custom arrow */
    background-image:
      linear-gradient(45deg, transparent 50%, var(--gold) 50%),
      linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position:
      calc(100% - 18px) calc(1em + 2px),
      calc(100% - 13px) calc(1em + 2px);
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.option-select:hover {
    border-color: var(--gold);
}

.option-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
}

/* Dropdown options (limited support, but helps) */
.option-select option {
    background-color: #111;
    color: var(--white);
}

/* ===== Navigation ===== */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nav-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
    border-bottom: 1px solid var(--gold);
}

.nav-logout-form {
    display: inline;
}

.nav-logout-btn {
    background: none;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
}

/* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--antique-gold);
    border-color: var(--antique-gold);
}

.btn-danger {
    border-color: #a33;
    color: #e55;
}

.btn-danger:hover {
    background: #a33;
    color: var(--white);
}

/* ===== Table ===== */

.table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin: 1.5rem auto;
    text-align: left;
}

.table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table a {
    color: var(--gold);
    text-decoration: none;
}

.table a:hover {
    color: var(--white);
}

.cart-options {
    color: var(--muted);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.2rem;
}

.total {
    font-size: 1.15rem;
    color: var(--gold);
    margin-top: 1rem;
}

/* ===== Product Detail ===== */

.product-detail {
    display: flex;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
    margin-top: 2rem;
    text-align: left;
}

.product-detail-image {
    flex: 0 0 360px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    color: var(--gold);
    margin: 0 0 0.5rem 0;
}

.product-detail-info .price {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.product-description {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.add-to-cart-form .option-group {
    margin-bottom: 1rem;
}

.add-to-cart-form .option-label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.qty-row {
    margin-bottom: 1.5rem;
}

.qty-input {
    width: 70px;
    padding: 0.5rem;
    background: #111;
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.qty-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ===== Category Filter ===== */

.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-filter .btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

/* ===== Product Card Link ===== */

.product-card-link {
    text-decoration: none;
    color: inherit;
}

/* ===== Auth & Verification ===== */

.auth-card {
    background-color: var(--dark-gray);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: left;
}

.auth-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.auth-error {
    background: rgba(170, 50, 50, 0.2);
    border: 1px solid #a33;
    color: #e55;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #111;
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
}

.auth-form input[type="file"] {
    color: var(--muted);
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.verify-text {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.verify-note {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.verify-success {
    color: #6c6;
}

.verify-denied {
    color: #e55;
}

.auth-link {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.2rem;
}

.auth-link a {
    color: var(--gold);
    text-decoration: none;
}

.auth-link a:hover {
    color: var(--white);
}

/* ===== Responsive ===== */

@media (max-width: 700px) {
    .product-detail {
        flex-direction: column;
    }

    .product-detail-image {
        flex: none;
    }
}
