/* GLOBAL RESETS & FONTS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f7f4f0;
    color: #1a1a1a;
    font-size: 12px;
}

.heart {
    color: #9e6038;
    font-style: normal;
}

.script-font {
    font-family: 'Great Vibes', cursive;
    color: #9e6038;
    font-weight: 400;
    font-size: 1.4em;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
    background: #eee8e0;
    padding: 6px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #4a4a4a;
    border-bottom: 1px solid #e2dad0;
}

.top-socials i {
    margin-left: 10px;
    cursor: pointer;
}

/* HEADER NAVIGATION */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #f7f4f0;
}

.brand-logo {
    text-align: center;
    cursor: pointer;
}

.logo-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    line-height: 0.9;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 2px;
}

.logo-tag {
    font-size: 7px;
    color: #666;
    letter-spacing: 2px;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-size: 11px;
    font-weight: 600;
    margin: 0 12px;
    padding-bottom: 2px;
    letter-spacing: 1px;
}

.nav-links a.active {
    border-bottom: 1.5px solid #111;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.header-actions i {
    cursor: pointer;
}

.cart-wrapper {
    position: relative;
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #9e6038;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    border-radius: 50%;
    padding: 1px 5px;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    background: #eae2d8;
    margin: 0 50px;
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    min-height: 270px;
}

.hero-text {
    flex: 1;
    padding: 40px;
}

.hero-overline {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 6px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    line-height: 1.05;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 11px;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.4;
}

.hero-btns {
    display: flex;
    gap: 10px;
}

.btn-dark {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #111;
    color: #111;
    padding: 10px 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
}

.hero-image-box {
    flex: 1.1;
    height: 100%;
    text-align: right;
}

.hero-image-box img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 180px 180px 0 0;
}

/* FEATURES BAR */
.features-bar {
    display: flex;
    justify-content: space-around;
    padding: 18px 50px;
    background: #f7f4f0;
    border-bottom: 1px solid #e5ded6;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 20px;
}

.feature-item div {
    display: flex;
    flex-direction: column;
}

.feature-item strong {
    font-size: 10px;
    letter-spacing: 0.5px;
}

.feature-item span {
    font-size: 9px;
    color: #666;
}

/* CATEGORIES */
.category-section {
    padding: 25px 50px;
    text-align: center;
}

.section-heading {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.category-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-arrow {
    background: #fff;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.category-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    overflow-x: hidden;
}

.cat-card {
    flex: 1;
    text-align: center;
}

.cat-arch-img {
    width: 100%;
    height: 120px;
    border-radius: 80px 80px 0 0;
    overflow: hidden;
    margin-bottom: 6px;
}

.cat-arch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card h4 {
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cat-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* PRODUCTS SECTION */
.products-section {
    padding: 20px 50px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.products-header h3 {
    font-size: 14px;
    letter-spacing: 2px;
}

.view-all {
    font-size: 10px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

/* PRODUCT GRID CONTAINER */
#products-container,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 15px;
    width: 100%;
    align-items: stretch;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s ease;
}

.product-card:hover { 
    transform: translateY(-3px); 
}

.badge,
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #9e6038;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    border-radius: 4px;
    padding: 3px 6px;
    z-index: 2;
}

.product-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    background-color: #f0f0f0;
}

.product-img-box img,
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    text-align: left;
    padding: 4px 0 0 0;
}

.product-card h4,
.product-info h4 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: #222;
}

.price,
.product-price {
    color: #9e6038;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 8px;
}

.card-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.add-btn,
.product-card button {
    background: #111;
    color: #fff;
    border: none;
    font-size: 9px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
    width: 100%;
    text-align: center;
}

.wish-icon {
    cursor: pointer;
    font-size: 13px;
}

/* PROMO GRID */
.promo-grid {
    display: flex;
    gap: 12px;
    padding: 20px 50px;
}

.promo-text-card, .promo-img-card {
    flex: 1;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
}

.promo-text-card {
    background: #ebdcd0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-tag {
    font-size: 8px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.promo-text-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    line-height: 1;
    margin: 4px 0;
}

.promo-text-card p {
    font-size: 9px;
    color: #555;
    margin-bottom: 10px;
}

.promo-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BOTTOM FEATURES */
.bottom-features {
    display: flex;
    justify-content: space-around;
    background: #eee6dc;
    margin: 0 50px;
    padding: 12px;
    border-radius: 6px;
}

.b-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.b-feature i {
    font-size: 16px;
    color: #9e6038;
}

.b-feature div {
    display: flex;
    flex-direction: column;
}

.b-feature span {
    font-size: 8px;
    color: #666;
}

/* FOOTER */
footer {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px;
    background: #f7f4f0;
    border-top: 1px solid #e5ded6;
    margin-top: 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nl-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.nl-head i {
    font-size: 20px;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 50%;
}

.nl-form input {
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 9px;
    outline: none;
}

.nl-form button {
    background: #111;
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
}

.brand-col {
    text-align: center;
}

.links-col a {
    text-decoration: none;
    color: #555;
    font-size: 10px;
}

.foot-social-icons i {
    font-size: 14px;
    margin-right: 8px;
    cursor: pointer;
}

.handle {
    font-size: 10px;
    color: #555;
}

.copyright-bar {
    text-align: center;
    padding: 8px;
    background: #eee6dc;
    font-size: 9px;
    color: #555;
}

/* MODALS & CART DRAWER */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 900;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 12px 16px;
    background: #f7f4f0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.empty-msg {
    text-align: center;
    color: #777;
    margin-top: 20px;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.cart-footer {
    padding: 16px;
    background: #f7f4f0;
    border-top: 1px solid #ddd;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 10px;
}

.full-btn {
    width: 100%;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    display: none;
    z-index: 999;
    width: 300px;
}

.modal-box {
    position: relative;
}

.close-btn {
    position: absolute;
    top: -8px;
    right: 0;
    font-size: 20px;
    cursor: pointer;
}

.search-flex {
    display: flex;
    margin-top: 10px;
}

.search-flex input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
}

.search-flex button {
    background: #111;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}

.modal-input {
    width: 100%;
    padding: 6px;
    margin: 6px 0;
    border: 1px solid #ccc;
}

/* INTERACTIVE HOVER HIGHLIGHTS */
a, nav.nav-links a, .footer-col a {
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

a:hover, nav.nav-links a:hover, .footer-col a:hover {
    color: #9e6038 !important;
    text-decoration: underline;
}

button, 
.btn-dark, 
.close-btn, 
.header-actions i, 
.top-socials i, 
.foot-social-icons i, 
.circle-icon, 
.brand-logo, 
.cart-wrapper {
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease, opacity 0.2s ease;
}

button:hover, .btn-dark:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

button:active, .btn-dark:active {
    transform: translateY(0);
}

/* ADMIN DASHBOARD */
.admin-body {
    background-color: #f4f1ea;
    min-height: 100vh;
}

.admin-login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.admin-login-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 360px;
    text-align: center;
}

.admin-header {
    background: #111;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.admin-form-grid input, .admin-form-grid select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}

.btn-edit { background: #9e6038; color: #fff; }
.btn-danger { background: #d9534f; color: #fff; }
.  { border: 1px solid #fff; color: #fff; padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 12px; }

/* TABLET RESPONSIVENESS (Max Width: 1024px) */
@media (max-width: 1024px) {
    .products-section {
        padding: 20px 20px;
    }

    #products-container,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* MOBILE RESPONSIVENESS (Max Width: 768px) */
@media (max-width: 768px) {
    header {
        padding: 12px 15px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .hero-section {
        flex-direction: column-reverse;
        margin: 0 15px;
        padding: 20px;
        min-height: auto;
    }

    .hero-text {
        padding: 15px 0;
        text-align: center;
    }

    .hero-image-box {
        width: 100%;
    }

    .hero-image-box img {
        height: 200px;
        border-radius: 10px;
    }

    .products-section {
        padding: 15px 10px;
    }

    /* 2 COLUMNS ON MOBILE */
    #products-container,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 8px;
    }

    .product-img-box {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .product-card h4,
    .product-info h4 {
        font-size: 11px;
        height: auto;
        max-height: 28px;
        overflow: hidden;
    }

    .price,
    .product-price {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .add-btn,
    .product-card button {
        padding: 7px 4px;
        font-size: 9px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
        text-align: center;
    }

    .nl-head {
        justify-content: center;
    }
}

/* SMALL MOBILE SCREENS (Max Width: 380px) */
@media (max-width: 380px) {
    #products-container,
    .products-grid {
        grid-template-columns: 1fr;
    }
}
