/* =========================================

   MHIDEY SKINCARE

   COMPLETE WEBSITE STYLING

========================================= */

/* 1. GLOBAL SETTINGS */

:root {

    --primary: #c65383;

    --primary-dark: #a83e6b;

    --secondary: #f8dce8;

    --background: #fffafd;

    --text: #35252e;

    --muted: #806d77;

    --white: #ffffff;

    --border: #f0dce5;

    --soft-pink: #fdf0f5;

    --shadow: 0 12px 35px rgba(70, 35, 53, 0.08);

}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: 'DM Sans', sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.6;

}

body.cart-open {

    overflow: hidden;

}

button,

input {

    font: inherit;

}

button {

    cursor: pointer;

}

a {

    text-decoration: none;

    color: inherit;

}

img {

    display: block;

    max-width: 100%;

}

/* 2. ANNOUNCEMENT BAR */

.announcement {

    background: var(--primary);

    color: var(--white);

    text-align: center;

    padding: 10px 15px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

}

/* 3. HEADER */

.header {

    min-height: 85px;

    padding: 15px 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background: rgba(255, 250, 253, 0.97);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 100;

}

.logo {

    font-family: 'Playfair Display', serif;

    font-size: 23px;

    font-weight: 700;

    letter-spacing: 1px;

    color: var(--text);

    white-space: nowrap;

}

.logo span {

    color: var(--primary);

    display: block;

    font-family: 'DM Sans', sans-serif;

    font-size: 9px;

    letter-spacing: 4px;

    text-align: center;

}

.main-nav {

    display: flex;

    align-items: center;

    gap: 30px;

}

.main-nav a {

    font-size: 13px;

    color: var(--muted);

    transition: 0.3s;

}

.main-nav a:hover {

    color: var(--primary);

}

.header-actions {

    display: flex;

    align-items: center;

    gap: 15px;

}

.icon-button {

    background: transparent;

    border: none;

    font-size: 19px;

}

.cart-button {

    background: var(--text);

    color: var(--white);

    border: none;

    padding: 11px 19px;

    border-radius: 30px;

    font-size: 12px;

}

#cart-count {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    background: var(--primary);

    color: white;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    margin-left: 5px;

}

.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    font-size: 25px;

    color: var(--text);

}

/* 4. SEARCH BOX */

.search-box {

    display: none;

    padding: 18px 7%;

    background: var(--white);

    border-bottom: 1px solid var(--border);

    gap: 10px;

}

.search-box.active {

    display: flex;

}

.search-box input {

    flex: 1;

    padding: 13px 16px;

    border: 1px solid var(--border);

    border-radius: 30px;

    outline: none;

}

.search-box input:focus {

    border-color: var(--primary);

}

.search-box button {

    background: var(--primary);

    color: white;

    border: none;

    border-radius: 30px;

    padding: 0 22px;

}

/* 5. HERO SECTION */

.hero {

    min-height: 590px;

    padding: 65px 7%;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 45px;

    background: linear-gradient(120deg, #fffafd, #fbe9f1);

}

.hero-content {

    max-width: 540px;

}

.eyebrow {

    color: var(--primary);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.5px;

    margin-bottom: 17px;

}

.hero h1 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(38px, 5vw, 65px);

    line-height: 1.15;

    margin-bottom: 22px;

}

.hero h1 span {

    color: var(--primary);

}

.hero-description {

    color: var(--muted);

    font-size: 15px;

    max-width: 440px;

    margin-bottom: 30px;

}

.hero-image {

    width: 100%;

    height: 450px;

    overflow: hidden;

    border-radius: 8px;

    background: var(--secondary);

}

.hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

/* 6. BUTTONS */

.primary-button,

.secondary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 25px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 700;

    border: none;

    transition: 0.3s;

}

.primary-button {

    background: var(--primary);

    color: var(--white);

}

.primary-button:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);

}

.secondary-button {

    border: 1px solid var(--primary);

    color: var(--primary);

    background: transparent;

}

.secondary-button:hover {

    background: var(--soft-pink);

}

/* 7. BENEFITS */

.benefits {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 75px;

    padding: 30px 7%;

    background: white;

    border-bottom: 1px solid var(--border);

}

.benefit {

    display: flex;

    align-items: center;

    gap: 10px;

}

.benefit span {

    color: var(--primary);

    font-size: 22px;

}

.benefit p {

    font-size: 12px;

    font-weight: 600;

}

/* 8. SHOP SECTION */

.shop-section {

    padding: 100px 7%;

}

.section-heading {

    text-align: center;

    max-width: 600px;

    margin: 0 auto 50px;

}

.section-heading h2,

.routine-content h2,

.story-section h2,

.newsletter h2 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(30px, 4vw, 43px);

    margin-bottom: 15px;

}

.section-heading > p:last-child {

    color: var(--muted);

    font-size: 14px;

}

.product-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 35px 22px;

}

.product-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;

    transition: 0.3s;

}

.product-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow);

}

.product-image {

    width: 100%;

    height: 260px;

    background: #f9edf2;

    overflow: hidden;

}

.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s;

}

.product-card:hover .product-image img {

    transform: scale(1.05);

}

.product-info {

    padding: 20px 17px;

}

.product-category {

    font-size: 9px;

    letter-spacing: 2px;

    color: var(--primary);

    font-weight: 700;

    margin-bottom: 8px;

}

.product-info h3 {

    font-family: 'Playfair Display', serif;

    font-size: 18px;

    margin-bottom: 9px;

}

.product-price {

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 16px;

}

.add-to-bag {

    width: 100%;

    background: var(--text);

    color: white;

    border: none;

    border-radius: 30px;

    padding: 12px;

    font-size: 11px;

    font-weight: 700;

    transition: 0.3s;

}

.add-to-bag:hover {

    background: var(--primary);

}

/* =====================================

   MHIDEY FUTURE PRODUCT SPACES

===================================== */

.product-placeholder {

    background: #fffafd;

    border: 1px dashed #d9a9bd;

    border-radius: 8px;

    overflow: hidden;

}

.product-image-placeholder {

    background: linear-gradient(135deg, #f8dce8, #fff5f9);

    display: flex;

    justify-content: center;

    align-items: center;

}

.product-image-placeholder span {

    font-family: 'Playfair Display', serif;

    font-size: 65px;

    color: #c65383;

    opacity: 0.65;

}

.product-placeholder .add-to-bag {

    display: block;

    width: 100%;

    background: #35252e;

    color: white;

    border: none;

    border-radius: 30px;

    padding: 12px;

    cursor: pointer;

    opacity: 1;

}

.product-placeholder .add-to-bag:hover {

    background: #c65383;

}

/* Make sure future product buttons are NOT disabled */

.product-placeholder .add-to-bag:disabled {

    opacity: 1;

    cursor: pointer;

}

/* 10. SEARCH MESSAGE */

.search-message {

    text-align: center;

    color: var(--muted);

    font-size: 13px;

    margin-top: 30px;

}

/* 11. ROUTINE SECTION */

.routine-section {

    min-height: 420px;

    padding: 90px 10%;

    display: flex;

    align-items: center;

    background: linear-gradient(110deg, #f9e3ec, #fff7fa);

}

.routine-content {

    max-width: 580px;

}

.routine-content h2 {

    line-height: 1.2;

}

.routine-content > p:not(.eyebrow) {

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 25px;

}

/* 12. STORY SECTION */

.story-section {

    text-align: center;

    max-width: 750px;

    margin: auto;

    padding: 100px 25px;

}

.story-section > p:last-child {

    color: var(--muted);

    font-size: 14px;

    line-height: 2;

}

/* 13. CONTACT SECTION */

.contact-section {

    padding: 90px 7%;

    background: white;

    text-align: center;

}

.contact-buttons {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

}

/* 14. NEWSLETTER */

.newsletter {

    padding: 80px 7%;

    text-align: center;

    background: var(--soft-pink);

}

.newsletter > p:not(.eyebrow) {

    color: var(--muted);

    font-size: 13px;

    margin-bottom: 20px;

}

.newsletter form {

    max-width: 500px;

    display: flex;

    margin: 25px auto 0;

    gap: 10px;

}

.newsletter input {

    flex: 1;

    min-width: 0;

    padding: 14px 18px;

    border: 1px solid var(--border);

    border-radius: 30px;

    outline: none;

}

.newsletter button {

    padding: 0 25px;

    border: none;

    border-radius: 30px;

    background: var(--primary);

    color: white;

    font-size: 12px;

    font-weight: 700;

}

#newsletter-message {

    margin-top: 15px;

    font-size: 12px;

}

/* 15. FOOTER */

.footer {

    padding: 50px 7%;

    text-align: center;

    background: #35252e;

    color: white;

}

.footer-logo {

    font-family: 'Playfair Display', serif;

    font-size: 22px;

    letter-spacing: 2px;

}

.footer > p {

    color: #d9c5ce;

    font-size: 12px;

    margin-top: 10px;

}

.footer-links {

    display: flex;

    justify-content: center;

    gap: 25px;

    margin: 25px 0;

}

.footer-links a {

    font-size: 12px;

    color: #f4dce7;

}

.copyright {

    border-top: 1px solid #59434e;

    padding-top: 20px;

}

/* 16. FLOATING WHATSAPP BUTTON */

.floating-whatsapp {

    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 500;

    display: flex;

    align-items: center;

    gap: 10px;

    background: #25D366;

    color: white;

    padding: 13px 19px;

    border-radius: 50px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);

    transition: 0.3s;

}

.floating-whatsapp:hover {

    transform: translateY(-5px);

    background: #1ebe5d;

}

.whatsapp-icon {

    font-size: 23px;

    font-weight: 700;

}

.whatsapp-text {

    font-size: 12px;

    font-weight: 700;

}

/* 17. CART OVERLAY */

.cart-overlay {

    position: fixed;

    inset: 0;

    background: rgba(30, 15, 23, 0.5);

    z-index: 1000;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;

}

.cart-overlay.open {

    opacity: 1;

    visibility: visible;

}

/* 18. CART PANEL */

.cart-panel {

    position: fixed;

    top: 0;

    right: -450px;

    width: min(420px, 100%);

    height: 100vh;

    height: 100dvh;

    background: white;

    z-index: 1001;

    padding: 25px;

    display: flex;

    flex-direction: column;

    transition: right 0.35s ease;

    overflow-y: auto;

    visibility: hidden;

}

.cart-panel.open {

    right: 0;

    visibility: visible;

}

.cart-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid var(--border);

    padding-bottom: 20px;

}

.cart-header h2 {

    font-family: 'Playfair Display', serif;

    font-size: 23px;

}

.cart-header .eyebrow {

    margin-bottom: 5px;

}

.close-cart {

    border: none;

    background: transparent;

    font-size: 32px;

    color: var(--text);

}

.cart-items {

    flex: 1;

    overflow-y: auto;

    padding-top: 15px;

}

.cart-item {

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 12px;

    padding: 17px 0;

    border-bottom: 1px solid var(--border);

}

.cart-item h4 {

    font-size: 13px;

    margin-bottom: 5px;

}

.cart-item-price {

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

}

.quantity-controls {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 10px;

}

.quantity-controls button {

    width: 27px;

    height: 27px;

    border: 1px solid var(--border);

    background: var(--soft-pink);

    border-radius: 50%;

}

.remove-item {

    border: none;

    background: transparent;

    color: #b14a67;

    font-size: 11px;

    margin-top: 8px;

}

.empty-cart {

    text-align: center;

    padding: 50px 10px;

}

.empty-cart > span {

    font-size: 40px;

    color: var(--primary);

}

.empty-cart h3 {

    font-family: 'Playfair Display', serif;

    margin: 10px 0;

}

.empty-cart p {

    font-size: 12px;

    color: var(--muted);

    margin-bottom: 20px;

}

.cart-footer {

    border-top: 1px solid var(--border);

    padding-top: 20px;

}

.cart-total-row {

    display: flex;

    justify-content: space-between;

    margin-bottom: 18px;

}

.cart-total-row strong {

    color: var(--primary);

}

.checkout-button {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 30px;

    background: var(--primary);

    color: white;

    font-size: 12px;

    font-weight: 700;

}

.clear-cart {

    display: block;

    margin: 15px auto 0;

    border: none;

    background: transparent;

    color: var(--muted);

    font-size: 11px;

}

/* 19. TOAST */

.toast {

    position: fixed;

    left: 50%;

    bottom: 30px;

    transform: translate(-50%, 100px);

    background: var(--text);

    color: white;

    padding: 13px 22px;

    border-radius: 30px;

    font-size: 12px;

    z-index: 2000;

    opacity: 0;

    transition: 0.3s;

    pointer-events: none;

}

.toast.show {

    opacity: 1;

    transform: translate(-50%, 0);

}

/* 20. RESPONSIVE DESIGN */

@media (max-width: 1000px) {

    .product-grid {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

    .main-nav {

        gap: 15px;

    }

    .hero {

        gap: 25px;

    }

}

@media (max-width: 750px) {

    .header {

        min-height: 70px;

        padding: 12px 5%;

    }

    .menu-toggle {

        display: block;

        order: 3;

    }

    .main-nav {

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background: white;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 15px 7%;

        box-shadow: var(--shadow);

    }

    .main-nav.active {

        display: flex;

    }

    .main-nav a {

        width: 100%;

        padding: 13px 0;

        border-bottom: 1px solid var(--border);

    }

    .header-actions {

        margin-left: auto;

    }

    .hero {

        grid-template-columns: 1fr;

        padding: 55px 6%;

    }

    .hero-content {

        text-align: center;

        margin: auto;

    }

    .hero-description {

        margin-left: auto;

        margin-right: auto;

    }

    .hero-image {

        height: 350px;

    }

    .benefits {

        gap: 20px;

        flex-wrap: wrap;

        padding: 25px 5%;

    }

    .shop-section {

        padding: 70px 5%;

    }

    .product-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 20px 12px;

    }

    .product-image,

    .placeholder-content {

        height: 210px;

    }

    .product-info {

        padding: 15px 12px;

    }

    .product-info h3 {

        font-size: 15px;

    }

    .routine-section {

        padding: 70px 7%;

    }

}

@media (max-width: 480px) {

    .logo {

        font-size: 18px;

    }

    .header {

        gap: 10px;

    }

    .header-actions {

        gap: 8px;

    }

    .cart-button {

        padding: 9px 12px;

        font-size: 11px;

    }

    .hero {

        padding-top: 45px;

    }

    .hero-image {

        height: 280px;

    }

    .benefits {

        flex-direction: column;

        align-items: flex-start;

        padding-left: 20%;

    }

    .product-grid {

        gap: 15px 10px;

    }

    .product-image,

    .placeholder-content {

        height: 170px;

    }

    .product-info h3 {

        font-size: 13px;

    }

    .product-category {

        font-size: 8px;

    }

    .product-price {

        font-size: 12px;

    }

    .add-to-bag {

        padding: 10px 5px;

        font-size: 10px;

    }

    .product-placeholder {

        min-height: 270px;

    }

    .placeholder-content span {

        font-size: 40px;

    }

    .placeholder-content p {

        font-size: 9px;

    }

    .placeholder-label {

        font-size: 9px;

    }

    .newsletter form {

        flex-direction: column;

    }

    .newsletter input,

    .newsletter button {

        min-height: 45px;

    }

    .floating-whatsapp {

        right: 15px;

        bottom: 15px;

        padding: 11px 15px;

    }

    .whatsapp-text {

        font-size: 10px;

    }

    .contact-buttons {

        flex-direction: column;

        align-items: center;

    }

    .footer-links {

        gap: 15px;

    }

}
