/* SD Frock - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --blue:    #3A7BD5;
    --purple:  #7B2FBE;
    --light-blue: #EAF1FB;
    --light-purple: #F3EAFC;
    --cream:   #F7F8FC;
    --charcoal:#2C2C2C;
    --mid:     #6B6B6B;
    --light:   #DDE3EE;
    --white:   #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Pushes footer to bottom on short-content pages */
body > footer {
    margin-top: auto;
}

/* NAV */
nav {
    background: var(--white);
    border-bottom: 1px solid var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 2px 8px rgba(58,123,213,0.07);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-logo-sub {
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--purple);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transition: width 0.25s;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-purple) 100%);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(123,47,190,0.07);
    transform: translate(30%, -30%);
    z-index: 0;
    pointer-events: none;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--charcoal);
    margin-bottom: 12px;
    position: relative;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    display: block;
    color: #4A4A4A;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: var(--white);
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}

/* SECTION */
.section { padding: 60px 40px; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}
.section-sub {
    color: var(--mid);
    font-size: 0.9rem;
    margin-bottom: 36px;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--light);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(58,123,213,0.13);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--blue);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body { padding: 14px 16px; }

.product-card-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
}

.product-card-stock {
    font-size: 0.75rem;
    color: var(--mid);
    margin-top: 4px;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--light);
    background: var(--white);
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--charcoal);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: var(--white);
    border-color: var(--blue);
}

/* PRODUCT DETAIL */
.detail-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.detail-img {
    aspect-ratio: 3/4;
    background: var(--light-blue);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--blue);
}

.detail-img img { width: 100%; height: 100%; object-fit: cover; }

.detail-category {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 12px;
}

.detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.detail-desc {
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.detail-stock {
    font-size: 0.82rem;
    color: var(--mid);
    margin-bottom: 24px;
}

/* FORM */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--light);
    border-radius: 4px;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--charcoal);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ALERT */
.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error   { background: #f8d7da; color: #721c24; }

/* FOOTER */
footer {
    background: var(--charcoal);
    color: var(--light);
    text-align: center;
    padding: 32px 40px;
    font-size: 0.85rem;
}
footer a { color: var(--blue); text-decoration: none; }

/* PAGE HERO */
.page-hero {
    background: linear-gradient(135deg, var(--light-blue), var(--light-purple));
    padding: 60px 40px;
    text-align: center;
}
.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--charcoal);
}
.page-hero p { color: var(--mid); margin-top: 10px; }

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.contact-info p {
    color: var(--mid);
    line-height: 1.8;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { gap: 16px; }
    .hero { padding: 50px 20px; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 40px 20px; }
    .detail-wrap { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-logo-text { display: none; }
}

/* FOOTER SOCIAL ICONS */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--light);
    transition: all 0.2s;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    transform: translateY(-2px);
}