/* GENERAL */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #171717;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

header {
    width: 100%;
    padding: 16px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

nav a {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

nav a:hover {
    color: #8b6b3f;
}

/* HOMEPAGE */

.hero {
    min-height: 68vh;
    display: grid;
    place-items: center;
    padding: 80px 7%;
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2)),
        url("gown-01.jpg/Image%202026-09-23%20at%206.52.13%20PM.jpeg") center 38% / cover no-repeat;
}

.hero-content {
    width: min(760px, 100%);
}

.hero h1 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: 1px;
}

.hero p {
    max-width: 580px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.hero-button {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #171717;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-button:hover {
    background: transparent;
    color: #ffffff;
}

.product-filters {
    padding-top: 34px;
}

section {
    padding: 72px 7%;
}

.section-title {
    margin: 0 auto 34px;
    text-align: center;
}

.section-title h2 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 38px);
}

.section-title p {
    margin: 0;
    color: #666666;
}

/* ACCOUNT */

.auth-status {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.auth-status button,
.auth-form button,
.secondary-button {
    border: 0;
    background: #111111;
    color: #ffffff;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1px;
}

.auth-status button:hover,
.auth-form button:hover,
.secondary-button:hover {
    background: #444444;
}

.auth-panel {
    background: #f7f5f2;
    padding-top: 58px;
    padding-bottom: 58px;
}

.account-container {
    max-width: 620px;
    margin: 0 auto;
}

.account-heading {
    margin: 0 auto 28px;
    text-align: center;
}

.account-heading h2 {
    margin-bottom: 10px;
    font-size: 32px;
}

.account-heading p {
    color: #555555;
    line-height: 1.6;
}

.auth-card,
.profile-card {
    width: 100%;
}

.form-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8e5e1;
}

.account-card-title {
    margin: 0 0 22px;
    font-size: 19px;
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 26px;
}

.auth-tab {
    border: 0;
    background: transparent;
    padding: 0 0 12px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1px;
}

.auth-tab.active {
    border-bottom: 2px solid #111111;
}

.auth-form {
    display: grid;
    gap: 9px;
    margin-bottom: 20px;
}

.auth-form label {
    margin-top: 7px;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.auth-form input {
    width: 100%;
    border: 1px solid #cccccc;
    padding: 13px;
    font: inherit;
}

.auth-form input:focus {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.auth-form button {
    width: 100%;
    margin-top: 12px;
}

.form-feedback {
    min-height: 20px;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
}

.form-feedback.error {
    color: #a32626;
}

.profile-email-group {
    margin-bottom: 18px;
}

.profile-email-group span {
    font-size: 12px;
    color: #555555;
}

.profile-email-group p {
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #777777;
}

.secondary-button {
    background: transparent;
    color: #111111;
    border: 1px solid #111111;
}

.profile-card > .secondary-button {
    width: 100%;
}

.hidden {
    display: none !important;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 7% 0;
}

.filter-button {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-button.active {
    background: #111111;
    color: #ffffff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.product-card {
    background: #ffffff;
    overflow: hidden;
    transition: 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f2f2f2;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-info {
    padding: 20px 18px 26px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    min-height: 52px;
}

.price {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 18px;
}

.product-info button,
.shop-button {
    border: none;
    background: #111111;
    color: #ffffff;
    padding: 13px 25px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    width: 100%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.product-info button:hover,
.shop-button:hover {
    background: #333333;
}

footer {
    padding: 24px 7%;
    background: #171717;
    color: #ffffff;
    text-align: center;
    font-size: 13px;
}

.cart-button {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cart-drawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cart-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: min(420px, 100%);
    height: 100%;
    background: #ffffff;
    padding: 28px 22px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.cart-drawer.open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-header h3,
.checkout-box h4 {
    font-size: 24px;
    letter-spacing: 1px;
}

.cart-close {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    color: #111111;
}

.cart-items {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 72px;
    height: 90px;
    object-fit: cover;
}

.cart-item-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-item-details p {
    color: #555555;
    font-size: 13px;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-actions button,
.cart-remove {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
}

.cart-item-total {
    font-weight: 700;
    font-size: 14px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    font-size: 16px;
}

.checkout-box {
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.checkout-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.checkout-form label {
    font-size: 12px;
    letter-spacing: 0.4px;
}

.checkout-form input {
    width: 100%;
    border: 1px solid #cccccc;
    padding: 12px;
    font: inherit;
}

.checkout-form button {
    border: none;
    background: #111111;
    color: #ffffff;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 10px;
}

.checkout-message {
    min-height: 24px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #1d5f3c;
}

.checkout-message.error {
    color: #a32626;
}

.empty-cart {
    color: #666666;
    line-height: 1.6;
}

.product-detail-page {
    padding: 80px 7%;
    background: #f7f5f2;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    padding: 28px;
}

.product-detail-image-wrap {
    background: #f2f2f2;
    min-height: 540px;
}

.product-detail-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    display: grid;
    gap: 18px;
}

.product-detail-info h1 {
    font-size: 42px;
    letter-spacing: 1px;
}

.product-detail-price {
    font-size: 26px;
    font-weight: bold;
}

.product-detail-description {
    color: #555555;
    line-height: 1.7;
    max-width: 520px;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.back-link {
    display: inline-block;
    margin-bottom: 26px;
    color: #111111;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 18px;
    }

    .product-detail-image-wrap {
        min-height: 340px;
    }

    .product-detail-info h1 {
        font-size: 28px;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .shop-button,
    .product-detail-actions .secondary-button {
        width: 100%;
    }
}


/* MOBILE PRODUCTS */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 18px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .logo {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .logo-text {
        font-size: 15px;
        letter-spacing: 1px;
        white-space: normal;
        text-align: center;
    }

    nav {
        gap: 12px 18px;
    }

    nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 68vh;
        padding: 42px 18px 52px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: 2px;
        line-height: 1.1;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .hero-button {
        display: inline-block;
        min-width: 190px;
        padding: 14px 24px;
    }

    section {
        padding: 56px 20px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .auth-status {
        margin-top: 2px;
    }

    .account-container {
        max-width: 100%;
    }

    .account-heading h2 {
        font-size: 26px;
    }

    .form-card {
        padding: 22px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-image {
        height: auto;
    }

    .product-info {
        padding: 14px 12px 16px;
    }

    .product-info h3 {
        min-height: 0;
        margin-bottom: 8px;
        font-size: 15px;
    }

    .product-info .price {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .product-info button {
        padding: 11px 8px;
        font-size: 10px;
    }

    .cart-panel {
        padding: 22px 16px;
    }

    .cart-item {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .cart-item img {
        width: 56px;
        height: 70px;
    }

    .cart-item-total,
    .cart-remove {
        grid-column: 2;
    }

    .cart-item-total {
        justify-self: end;
    }

    .cart-remove {
        justify-self: start;
    }

}

@media (max-width: 380px) {
    .logo-text {
        font-size: 13px;
    }

    nav {
        gap: 10px 14px;
    }

    .product-grid {
        gap: 10px;
    }

    .product-info h3,
    .product-info .price {
        font-size: 13px;
    }
}