/* =========================================================
   COMPONENTS.CSS
   Reusable sections used on both the home and product pages
   ========================================================= */

/* ---------- Navigation ---------- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.nav-links a {
    text-decoration: none;
    color: #435635;
    font-family: "PT Serif", serif;
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-bar img {
    max-height: 100px;
    margin-left: 10px;
}

.nav-cart {
    text-decoration: none;
    color: #303e26;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "PT Serif", serif;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: 20px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #303e26;
    font-size: 1.4rem;
    cursor: pointer;
}

.close-menu-item,
.close-btn {
    display: none;
}

@media (max-width: 879px) {
    .menu-btn {
        display: block;
    }

    .nav-actions {
        position: relative;
        z-index: 900;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        width: 240px;
        height: 100vh;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 30px;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .close-menu-item {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .close-btn {
        display: block;
        background: none;
        border: none;
        color: #303e26;
        font-size: 1.5rem;
        cursor: pointer;
    }

    
}




/* ---------- Shared product showcase ---------- */
.product-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#product-photo {
    display: flex;
    overflow-x: auto;
    width: 40%;
    max-width: 460px;
    height: 550px;
    gap: 0;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: block;
}

.all-info-product {
    width: 60%;
}

.product-info a {
    text-decoration: none;
    color: #435635;
}

.product-info h2 {
    font-family: "PT Serif", serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-family: "PT Serif", serif;
    font-size: 0.9rem;
    font-weight: 200;
    color: #666;
    margin: 0 0 15px;
    letter-spacing: 1px;
}

.product-info > p:first-of-type {
    font-family: "PT Serif", serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #435635;
    margin: 0 0 20px;
}

.product-info > p:nth-of-type(2) {
    font-family: "PT Serif", serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 25px;
}

.product-info-5 div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.product-info-5 p {
    font-family: "PT Serif", serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    margin: 0;
}

.product-info .product-review-stars {
    color: #d4a017;
    text-decoration: none;
}

.product-info .product-review-stars p {
    color: #d4a017;
    margin: 0;
}

.product-info .product-review-stars:hover {
    text-decoration: underline;
}

/* ---------- Shared purchase controls ---------- */
.product-purchase-options {
    border-top: 1px solid #dbce84;
    border-bottom: 1px solid #dbce84;
    padding: 15px 0;
    margin-top: 20px;
}

.options-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.options-label {
    font-weight: 100;
    font-size: 0.85rem;
    color: #435635;
    min-width: 80px;
}

.size-box {
    font-weight: 100;
    font-size: 0.85rem;
    color: #435635;
    border: 1px solid #435635;
    background-color: #f7f5ef;
    padding: 7px 15px;
    border-radius: 2px;
    display: inline-block;
    width: fit-content;
}

.buy-row {
    justify-content: flex-start;
    gap: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 28px;
    height: 32px;
    border: none;
    background: #fff;
    color: #435635;
    cursor: pointer;
    font-size: 1rem;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    padding: 10px 20px;
    background: #435635;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ---------- Footer ---------- */
#footer {
    background-color: #f4f3eb;
    padding: 48px 40px 28px;
    
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: start;
}

#footer img {
    width: 180px;
}

.footer-col h3 {
    font-size: 13px;
    font-weight: 600;
    color: #3a3927;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.footer-col p,
.footer-col a {
    font-size: 13px;
    color: #5a5946;
    margin: 0 0 8px;
    display: block;
    text-decoration: none;
    line-height: 1.5;
    
    
}

.footer-col a:hover {
    color: #3a3927;
}

.footer-col i {
    color: #5a5946;
    margin-right: 5px;
    
}

.footer-divider {
    border: none;
    margin: 32px 0 16px;
}

.footer-bottom {
    font-size: 12px;
    color: #8a8870;
    text-align: center;
    margin: 0;
   
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #footer {
        padding: 40px 20px;
    }
}

@media (max-width: 800px) {
  .product-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    width: 100%;
    padding: 30px 0;
  }

  #product-photo {
  width: 88%;
  max-width: 700px;
  height: 600px;
  margin-left: auto;
  margin-right: auto;
}

  .all-info-product {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0 20px;
  }
}


.top-banner{
    background-color: #37462e;
    color: #f4f3eb;
    padding: 9px;
    font-size: smaller;
    text-align: center;
}

