@import url('./theme.css');

:root {
    --primary-gold: var(--accent);
    --gold-hover: var(--button-hover);
    --accent-gold: var(--highlight);
    --bg: var(--bg-main);
    --text: var(--text-light);
    --text-secondary: var(--text-muted);
    --border: rgba(249, 170, 173, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-main), var(--bg-secondary));
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-main {
    min-height: calc(100vh - 180px);
    background: transparent;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

.section {
    padding: 100px 0;
    background: transparent;
}

.section-head {
    margin-bottom: 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 14, 28, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(33, 6, 53, 0.35);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #A1525F, #C5757C);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav-links a:hover {
    color: var(--highlight);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--text-light);
    border-radius: 8px;
    padding: 8px 12px;
}

.hero {
    position: relative;
    background: linear-gradient(120deg, #140E1C 0%, #462037 100%);
    min-height: 680px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(197, 117, 124, 0.18) 0%, rgba(20, 14, 28, 0) 45%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: flex;
    align-items: stretch;
    z-index: 1;
}

.hero-overlay {
    width: 100%;
    display: flex;
    align-items: stretch;
    padding: 70px 0 40px;
}

.hero-content {
    color: #FFFFFF;
    max-width: 620px;
    width: 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 30px;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUpIn 0.9s ease forwards;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 18px;
}

.hero p {
    color: #C5757C;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-media {
    width: 48%;
    min-height: 500px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUpIn 0.9s ease 0.15s forwards;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 14, 28, 0.45) 0%, rgba(20, 14, 28, 0.2) 38%, rgba(20, 14, 28, 0.62) 100%);
}

.btn-primary {
    background: #A1525F;
    color: #fff;
    border: 1px solid #A1525F;
    border-radius: 50px;
    padding: 14px 32px;
    box-shadow: 0 0 20px rgba(197, 117, 124, 0.35);
}

.brand-banner {
    min-height: 360px;
    background: url('../images/banner.jpg') center/cover no-repeat;
}

.brand-banner-overlay {
    min-height: 360px;
    background: linear-gradient(120deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.35));
    display: flex;
    align-items: center;
}

.brand-banner-content {
    color: #FFFFFF;
}

.brand-banner-content h2 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    margin-bottom: 10px;
}

.brand-banner-content p {
    color: #ececec;
    margin-bottom: 20px;
}

.btn {
    background: linear-gradient(45deg, #A1525F, #C5757C);
    color: #fff;
    border: 1px solid #A1525F;
    border-radius: 999px;
    padding: 11px 22px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-luxury {
    background: linear-gradient(45deg, #A1525F, #C5757C);
    color: #fff;
    border: 1px solid #A1525F;
    border-radius: 50px;
    transition: 0.3s ease;
}

.btn:hover,
.btn-luxury:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(197, 117, 124, 0.6);
}
.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: #A1525F;
}

.btn-outline:hover {
    background: rgba(161, 82, 95, 0.28);
    border-color: #C5757C;
    color: var(--text-light);
}

.price {
    color: #F9AAAD;
    font-weight: 600;
}

.stock-info {
    margin: 8px 0;
    font-weight: 600;
    color: #b7f5c0;
}

.stock-badge {
    display: inline-block;
    margin: 8px 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stock-badge.low {
    background: #fff3cd;
    color: #7a5a00;
    border: 1px solid #f2d27a;
}

.stock-badge.out {
    background: #ffe4e6;
    color: #a10f1f;
    border: 1px solid #f2a5ad;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.shop-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    height: fit-content;
}

.shop-sidebar h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.category-link {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.category-link:hover,
.category-link.active {
    background: rgba(161, 82, 95, 0.25);
    color: var(--highlight);
    font-weight: 600;
}

.product-grid {
    display: grid;
    gap: 20px;
}

.shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    background: rgba(104, 58, 70, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    color: var(--text-light);
    box-shadow: 0 10px 28px rgba(20, 14, 28, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(161, 82, 95, 0.48);
}

.product-image-container {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 12px;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

.product-card h3 {
    margin-bottom: 8px;
    font-size: 1.04rem;
}

.latest-collection-section {
    background: var(--bg-primary);
}

.collection-head {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 680px;
}

.latest-collection-section .collection-head {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.collection-kicker {
    margin-bottom: 8px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.collection-head h2 {
    color: var(--primary-gold);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 8px;
}

.latest-collection-section .collection-head h2 {
    text-align: center;
    display: block;
    left: auto;
    transform: none;
}

.latest-collection-section .collection-head h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.collection-subtitle {
    color: var(--text-muted);
    margin-bottom: 0;
}

.latest-collection-section .collection-kicker,
.latest-collection-section .collection-subtitle {
    text-align: center;
}

.latest-collection-grid {
    margin-top: 6px;
}

.trust-section {
    background: linear-gradient(180deg, rgba(20, 14, 28, 0.92) 0%, rgba(70, 32, 55, 0.88) 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.trust-item {
    text-align: center;
    background: rgba(104, 58, 70, 0.52);
    backdrop-filter: blur(12px);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(161, 82, 95, 0.35);
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    display: inline-block;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.12);
}

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 170px 1fr auto;
    gap: 16px;
    align-items: center;
}

.cart-item-image {
    height: 150px;
    margin-bottom: 0;
}

.cart-item-info h3 {
    margin-bottom: 8px;
}

.cart-item-info p {
    margin: 6px 0;
    color: var(--text-secondary);
}

.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
}

.total {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.cart-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.auth-section {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.auth-card {
    width: min(480px, 100%);
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(20, 14, 28, 0.45);
    padding: 28px;
}

.auth-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--accent);
    background: var(--bg-secondary);
    color: var(--text-light);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--highlight);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 170, 173, 0.24);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.auth-note {
    margin-top: 12px;
    color: var(--text-secondary);
}

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

.alert {
    border-radius: 10px;
    padding: 10px 12px;
}

.alert-danger {
    background: #ffeaea;
    color: #992626;
}

.alert-success {
    background: #e9f8ed;
    color: #186d2d;
}

.site-footer {
    background: rgba(20, 14, 28, 0.85);
    color: #C5757C;
    padding: 34px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-col h4 {
    margin-bottom: 12px;
    color: var(--text-light);
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(197, 117, 124, 0.35));
}

.footer-text {
    color: #C5757C;
    max-width: 320px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #C5757C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--highlight);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-gallery > img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.thumb-grid {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumb-btn {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: var(--bg-secondary);
}

.thumb-btn img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 7px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px;
}

.auth-box,
.admin-form,
.order-summary,
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.admin-wrap {
    padding: 35px 0;
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 14px 0 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    color: var(--text-light);
}

th,
td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

.table-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 75px;
    width: auto;
}

.site-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-light);
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 60px;
}

.footer-site-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-light);
}

.admin-wrap > h1 {
    margin-bottom: 14px;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 14px 18px;
    border-radius: 12px;
}

.admin-nav {
    background: rgba(20, 14, 28, 0.95);
    padding: 10px 12px;
    border-radius: 12px;
}

.admin-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
}

.admin-nav a:hover {
    color: var(--highlight);
    background: rgba(161, 82, 95, 0.45);
}

.section h2,
.section-head h2 {
    color: var(--highlight);
    position: relative;
    padding-bottom: 8px;
    text-align: center;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section h2::after,
.section-head h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 2px;
    transform: translateX(-50%);
    background: #A1525F;
    border-radius: 2px;
}

.admin-wrap h2 {
    left: auto;
    transform: none;
    text-align: left;
    display: block;
}

.admin-wrap h2::after {
    left: 0;
    transform: none;
}

.reveal-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-wrap .btn,
.auth-box .btn {
    background: var(--button-bg);
    border-color: var(--button-bg);
    color: var(--text-light);
}

.admin-wrap .btn:hover,
.auth-box .btn:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
}

@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-layout {
        grid-template-columns: 220px 1fr;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-block;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 10px;
    }

    .nav-links.open {
        display: flex;
    }

    .shop-layout,
    .product-detail,
    .checkout-grid,
    .admin-grid,
    .cart-item,
    .footer-inner,
    .trust-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-overlay {
        padding-top: 40px;
    }

    .hero .container {
        flex-direction: column;
        gap: 24px;
    }

    .hero-content,
    .hero-media {
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.2rem);
    }

    .shop-sidebar {
        order: 2;
    }

    .footer-inner {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }

    .hero {
        min-height: auto;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .product-image-container {
        height: 260px;
    }

    .auth-card {
        padding: 20px;
    }

    .btn,
    .btn-luxury,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-logo {
        height: 55px;
    }

    .site-name {
        font-size: 22px;
    }

    .footer-logo {
        height: 45px;
    }

    .footer-site-name {
        font-size: 20px;
    }
}
