@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    --cream: #F8F6F1;
    --white: #FFFFFF;
    --dark: #302A25;
    --brown: #76685C;
    --beige: #D9CFC2;
    --light: #EAE5DD;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--dark);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font-family: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248,246,241,.96);
    border-bottom: 1px solid var(--light);
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1280px;
    margin: auto;
    padding: 17px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: 7px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    transition: color .2s;
}

.main-nav a:hover {
    color: #A28B75;
}

.header-user {
    font-size: 11px;
    color: var(--brown);
}

.hero {
    max-width: 1280px;
    margin: 28px auto 70px;
    padding: 0 35px;
}

.hero-image {
    min-height: 510px;
    background:
        linear-gradient(90deg, rgba(28,24,21,.43), rgba(28,24,21,.02)),
        url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=2000&q=85')
        center 40% / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 70px;
    border-radius: 2px;
}

.hero-content {
    max-width: 520px;
    color: white;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 400;
    margin: 0 0 20px;
}

.hero p {
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--dark);
    color: white;
    padding: 14px 30px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--dark);
    transition: .25s;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--dark);
}

.hero .btn-primary {
    background: white;
    color: var(--dark);
    border-color: white;
}

.hero .btn-primary:hover {
    background: transparent;
    color: white;
}

.section {
    max-width: 1280px;
    margin: 0 auto 85px;
    padding: 0 35px;
}

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading .eyebrow {
    color: var(--brown);
    margin-bottom: 8px;
}

.section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.section-heading p {
    color: var(--brown);
    font-size: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

.product-card {
    min-width: 0;
    background: transparent;
    text-align: left;
}

.product-image-wrap {
    overflow: hidden;
    background: #EEEAE4;
    aspect-ratio: 3 / 4;
}

.product-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.product-card:hover img {
    transform: scale(1.045);
}

.product-info {
    padding: 13px 2px;
}

.product-info h3 {
    font-size: 12px;
    font-weight: 400;
    margin: 0 0 5px;
}

.product-price {
    color: var(--brown);
    font-size: 12px;
}

.product-card form {
    margin-top: 12px;
}

.btn-add {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--beige);
    color: var(--dark);
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s;
}

.btn-add:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}

.collection-banner {
    max-width: 1210px;
    margin: 0 auto 85px;
    padding: 65px 25px;
    background: #EAE4DB;
    text-align: center;
}

.collection-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 45px;
    font-weight: 400;
    margin: 0 0 10px;
}

.collection-banner p {
    color: var(--brown);
    font-size: 12px;
    margin-bottom: 25px;
}

.site-footer {
    background: #302A25;
    color: #F8F6F1;
    text-align: center;
    padding: 45px 20px;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    letter-spacing: 6px;
}

.site-footer p {
    color: #C6B9AA;
    font-size: 10px;
    letter-spacing: 2px;
}

.page-title {
    text-align: center;
    padding: 65px 20px 35px;
}

.page-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 400;
    margin: 0;
}

.page-title p {
    color: var(--brown);
    font-size: 12px;
}

.empty-message {
    text-align: center;
    padding: 50px 15px;
    color: var(--brown);
}

@media (max-width: 850px) {
    .header-inner {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .main-nav {
        gap: 15px;
    }

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

    .hero-image {
        min-height: 420px;
        padding: 35px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        justify-content: center;
    }

    .brand {
        font-size: 30px;
    }

    .main-nav {
        justify-content: center;
        gap: 12px 18px;
    }

    .main-nav a {
        font-size: 9px;
    }

    .hero {
        margin-top: 15px;
        padding: 0 12px;
    }

    .hero-image {
        min-height: 380px;
        padding: 25px;
    }

    .section {
        padding: 0 14px;
        margin-bottom: 55px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

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

    .product-info h3 {
        font-size: 11px;
    }

    .collection-banner {
        margin: 0 12px 55px;
        padding: 45px 15px;
    }
}

/* ==========================================
   MAIORA - AUTHENTICATION & ORDER PAGES
   Soft Elegant / Minimalist / Modern
========================================== */

body {
    background: var(--cream, #F8F6F1);
    color: var(--dark, #302A25);
    font-family: 'Be Vietnam Pro', sans-serif;
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

h1, h2, h3 {
    color: var(--dark, #302A25);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

h1 {
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 30px;
}

form {
    color: var(--dark, #302A25);
}

form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 12px 14px;
    margin: 7px 0 17px;
    border: 1px solid var(--beige, #D9CFC2);
    border-radius: 3px;
    background: #fff;
    color: var(--dark, #302A25);
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--brown, #76685C);
    box-shadow: 0 0 0 3px rgba(118, 104, 92, .10);
}

form label {
    display: block;
    margin-bottom: 5px;
    color: var(--brown, #76685C);
    font-size: 13px;
    letter-spacing: .3px;
}

form button,
button,
input[type="submit"] {
    min-height: 45px;
    padding: 12px 25px;
    border: 1px solid var(--dark, #302A25);
    border-radius: 2px;
    background: var(--dark, #302A25);
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: .2s ease;
}

form button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--brown, #76685C);
    border-color: var(--brown, #76685C);
}

form a,
main a {
    color: var(--brown, #76685C);
    text-decoration: none;
}

form a:hover,
main a:hover {
    text-decoration: underline;
}

main table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--light, #EAE5DD);
}

main th {
    padding: 16px;
    background: var(--light, #EAE5DD);
    color: var(--dark, #302A25);
    text-align: left;
    font-weight: 500;
}

main td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--light, #EAE5DD);
    vertical-align: middle;
}

main tr:last-child td {
    border-bottom: 0;
}

main img {
    max-width: 100%;
    height: auto;
}

main .message,
main .alert,
main .error,
main .success {
    padding: 13px 16px;
    margin: 16px 0;
    border: 1px solid var(--beige, #D9CFC2);
    background: #fff;
    color: var(--dark, #302A25);
}

main .auth-container,
main .form-container,
main .login-container,
main .register-container {
    width: min(460px, 100%);
    margin: 0 auto;
    padding: 38px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--light, #EAE5DD);
}

main .auth-container form button,
main .form-container form button,
main .login-container form button,
main .register-container form button {
    width: 100%;
}

main .order-card,
main .checkout-card {
    margin: 20px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--light, #EAE5DD);
}

@media (max-width: 640px) {
    main {
        width: calc(100% - 28px);
        padding: 30px 0 48px;
    }

    main .auth-container,
    main .form-container,
    main .login-container,
    main .register-container {
        padding: 24px 18px;
    }

    main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    main th,
    main td {
        padding: 12px;
    }
}


/* ==========================================
   MAIORA - MY ORDERS PAGE
========================================== */

.orders-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 20px 80px;
}

.orders-heading {
    text-align: center;
    margin-bottom: 42px;
}

.orders-heading .eyebrow {
    color: #9A8877;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.orders-heading h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 500;
    margin: 12px 0;
}

.orders-heading p {
    color: #887B70;
    font-size: 14px;
}

.orders-container {
    background: #fff;
    border: 1px solid #EAE5DD;
    padding: 28px;
}

.orders-container table {
    width: 100%;
    border-collapse: collapse;
}

.orders-container th {
    background: #F8F6F1;
    color: #76685C;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 17px 14px;
    text-align: left;
}

.orders-container td {
    padding: 20px 14px;
    border-bottom: 1px solid #EEEAE4;
    color: #51473F;
    font-size: 13px;
}

.orders-container tr:last-child td {
    border-bottom: none;
}

.orders-container tbody tr:hover {
    background: #FCFAF7;
}

.orders-container a {
    color: #76685C;
    text-decoration: none;
    border-bottom: 1px solid #D9CFC2;
    padding-bottom: 2px;
}

.orders-container a:hover {
    color: #302A25;
}

.order-status {
    display: inline-block;
    padding: 6px 12px;
    background: #F3EFE9;
    color: #76685C;
    font-size: 11px;
    border-radius: 20px;
    white-space: nowrap;
}

.orders-empty {
    text-align: center;
    padding: 65px 20px;
    background: #fff;
}

.orders-empty h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
}

.orders-empty p {
    color: #887B70;
    font-size: 14px;
    margin: 12px 0 25px;
}

.orders-empty a {
    display: inline-block;
    padding: 13px 27px;
    background: #302A25;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
}

.orders-empty a:hover {
    background: #76685C;
}

@media (max-width: 700px) {
    .orders-page {
        padding: 35px 14px 55px;
    }

    .orders-container {
        padding: 12px;
        overflow-x: auto;
    }

    .orders-container table {
        min-width: 620px;
    }
}


/* ==========================================
   MAIORA - ORDERS TABLE REFINEMENT
========================================== */

body table {
    width: min(1000px, calc(100% - 40px));
    margin: 35px auto 70px;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    border: 1px solid #EAE5DD;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(48, 42, 37, 0.045);
}

body table th {
    padding: 19px 22px;
    background: #F1EDE6;
    color: #66584C;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border: none;
    border-bottom: 1px solid #E5DED4;
    text-align: left;
}

body table td {
    padding: 19px 22px;
    color: #51473F;
    font-size: 13px;
    background: #FFFFFF;
    border: none;
    border-bottom: 1px solid #F0ECE6;
    vertical-align: middle;
}

body table tr:last-child td {
    border-bottom: none;
}

body table tbody tr {
    transition: background 0.2s ease;
}

body table tbody tr:hover td {
    background: #FBF9F5;
}

/* Delete button - soft beige/brown */
body table button,
body table input[type="submit"],
body table form button {
    min-width: 68px;
    min-height: 36px;
    padding: 8px 17px;
    margin: 0;
    background: #F3EFE9 !important;
    color: #79695B !important;
    border: 1px solid #DED4C8 !important;
    border-radius: 3px !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

body table button:hover,
body table input[type="submit"]:hover,
body table form button:hover {
    background: #76685C !important;
    color: #FFFFFF !important;
    border-color: #76685C !important;
}

/* Keep the order number elegant */
body table td:first-child {
    color: #76685C;
    font-weight: 500;
}

/* Responsive table */
@media (max-width: 700px) {
    body table {
        width: calc(100% - 24px);
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin-top: 25px;
    }

    body table th,
    body table td {
        padding: 14px 15px;
    }
}


/* ==========================================
   MAIORA - ELEGANT NAVIGATION
========================================== */

body > a[href*="products.php"],
body > a[href*="cart.php"],
body > a[href*="orders.php"],
body > a[href*="logout.php"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 19px;
    margin: 0;
    color: #76685C;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: color .25s ease, background .25s ease,
                border-color .25s ease;
}

body > a[href*="products.php"]:hover,
body > a[href*="cart.php"]:hover,
body > a[href*="orders.php"]:hover {
    color: #302A25;
    background: #F1EDE6;
    border-bottom-color: #B8A797;
    text-decoration: none;
}

body > a[href*="logout.php"] {
    margin-left: 8px;
    min-height: 34px;
    padding: 0 17px;
    color: #76685C;
    background: #F1EDE6;
    border: 1px solid #DED4C8;
    border-radius: 3px;
}

body > a[href*="logout.php"]:hover {
    color: #FFFFFF;
    background: #76685C;
    border-color: #76685C;
    text-decoration: none;
}

@media (max-width: 600px) {
    body > a[href*="products.php"],
    body > a[href*="cart.php"],
    body > a[href*="orders.php"] {
        padding: 0 10px;
        font-size: 12px;
    }

    body > a[href*="logout.php"] {
        padding: 0 10px;
        margin-left: 2px;
    }
}


/* ==========================================
   MAIORA - ELEGANT NAVIGATION
========================================== */

body > a[href*="products.php"],
body > a[href*="cart.php"],
body > a[href*="orders.php"],
body > a[href*="logout.php"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 19px;
    margin: 0;
    color: #76685C;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: color .25s ease, background .25s ease,
                border-color .25s ease;
}

body > a[href*="products.php"]:hover,
body > a[href*="cart.php"]:hover,
body > a[href*="orders.php"]:hover {
    color: #302A25;
    background: #F1EDE6;
    border-bottom-color: #B8A797;
    text-decoration: none;
}

body > a[href*="logout.php"] {
    margin-left: 8px;
    min-height: 34px;
    padding: 0 17px;
    color: #76685C;
    background: #F1EDE6;
    border: 1px solid #DED4C8;
    border-radius: 3px;
}

body > a[href*="logout.php"]:hover {
    color: #FFFFFF;
    background: #76685C;
    border-color: #76685C;
    text-decoration: none;
}

@media (max-width: 600px) {
    body > a[href*="products.php"],
    body > a[href*="cart.php"],
    body > a[href*="orders.php"] {
        padding: 0 10px;
        font-size: 12px;
    }

    body > a[href*="logout.php"] {
        padding: 0 10px;
        margin-left: 2px;
    }
}


/* ==========================================
   MAIORA - LOGIN & REGISTER
   Soft Elegant Authentication
========================================== */

body:has(form input[type="password"]) {
    background: #F8F6F1;
    color: #302A25;
}

/* Authentication form */
body:has(form input[type="password"]) form {
    width: min(430px, calc(100% - 36px));
    box-sizing: border-box;
    margin: 55px auto 75px;
    padding: 42px 38px;
    background: #FFFFFF;
    border: 1px solid #EAE5DD;
    border-radius: 4px;
    box-shadow: 0 12px 35px rgba(48, 42, 37, .055);
}

/* Page headings */
body:has(form input[type="password"]) h1 {
    margin: 38px auto 10px;
    color: #302A25;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 48px);
    font-weight: 500;
    text-align: center;
}

body:has(form input[type="password"]) h2 {
    color: #76685C;
    font-family: 'Cormorant Garamond', serif;
    font-size: 27px;
    font-weight: 500;
    text-align: center;
}

/* Labels and fields */
body:has(form input[type="password"]) form label {
    display: block;
    margin: 13px 0 7px;
    color: #76685C;
    font-size: 12px;
    letter-spacing: .4px;
}

body:has(form input[type="password"]) form input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 47px;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 0 0 13px;
    border: 1px solid #DED6CC;
    border-radius: 3px;
    background: #FDFCFA;
    color: #302A25;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

body:has(form input[type="password"]) form input:focus {
    border-color: #9B8978;
    box-shadow: 0 0 0 3px rgba(118, 104, 92, .09);
}

/* Main action button */
body:has(form input[type="password"]) form button,
body:has(form input[type="password"]) form input[type="submit"] {
    width: 100%;
    min-height: 47px;
    margin-top: 13px;
    border: 1px solid #76685C;
    border-radius: 3px;
    background: #76685C;
    color: #FFFFFF;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s ease;
}

body:has(form input[type="password"]) form button:hover,
body:has(form input[type="password"]) form input[type="submit"]:hover {
    background: #302A25;
    border-color: #302A25;
}

/* Links */
body:has(form input[type="password"]) form a {
    color: #8B7968;
    text-decoration: none;
    transition: color .2s;
}

body:has(form input[type="password"]) form a:hover {
    color: #302A25;
    text-decoration: underline;
}

/* Validation messages */
body:has(form input[type="password"]) .error,
body:has(form input[type="password"]) .success,
body:has(form input[type="password"]) .message,
body:has(form input[type="password"]) .alert {
    padding: 12px 14px;
    margin: 12px 0;
    border: 1px solid #EAE5DD;
    border-radius: 3px;
    background: #F8F6F1;
    color: #76685C;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 600px) {
    body:has(form input[type="password"]) form {
        padding: 28px 22px;
        margin: 35px auto 50px;
    }
}

