/* Custom styles for CraftyOnTap.com */
/* Fun, playful, and professional enhancements */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Montserrat:wght@400;700&display=swap');

body {
    background: #f9f6f2;
    color: #5c4634;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
}
.main-header {
    background: #f5e7d4;
    padding: 0.7rem 0;
    border-bottom: 1.5px solid #e2d2b2;
    box-shadow: 0 2px 8px #e2d2b233;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-script {
    font-family: 'Pacifico', cursive;
    font-size: 2.3rem;
    color: #2d2013;
    letter-spacing: 1px;
    margin-right: 2rem;
}
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}
.nav-link {
    color: #5c4634;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #e0954a;
}
.header-icons {
    display: flex;
    gap: 1.2rem;
    font-size: 1.3rem;
}
.icon-search::before {
    content: '\1F50D'; /* magnifying glass emoji */
}
.icon-heart::before {
    content: '\2665'; /* heart emoji */
    color: #e0954a;
}
.hero-img-section {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 350px;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}
.hero-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-img-bg .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(249, 246, 242, 0.95) 20%, rgba(255,255,255,0) 70%);
    z-index: 2;
}
.hero-img-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    display: block;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 3vw;
    margin-bottom: 4vh;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5c4634;
    margin-bottom: 1.5rem;
}
.hero-sub {
    font-size: 1.1rem;
    color: #f8f0e4;
    margin-bottom: 2.2rem;
    text-shadow: 0 1px 8px #5c463444;
}
.hero-btn {
    background: #f5e7d4;
    color: #5c4634;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 10px #e2d2b277;
    transition: background 0.2s ease, color 0.2s ease;
}
.hero-btn:hover {
    background: #e0954a;
    color: white;
}
.divider {
    height: 18px;
    background: linear-gradient(90deg, #f5e7d4 60%, #fff6e2 100%);
    border-bottom: 2px solid #e2d2b2;
    box-shadow: 0 4px 12px #e2d2b233;
}
.products-section {
    background: #fff;
    padding: 3.5rem 0 2.5rem 0;
}
.section-title-script {
    font-family: 'Pacifico', cursive;
    color: #e0954a;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.2rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.product-card, .col-sm-10.col-md-6.col-lg-4.mb-4 {
    background: #f9f6f2;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px #e2d2b244;
    overflow: hidden;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 600px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.product-card img {
    max-width: 360px;
    width: 100%;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 1rem;
    background: #fff;
}
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 98vw;
    }
    .product-card, .col-sm-10.col-md-6.col-lg-4.mb-4 {
        min-width: 0;
        max-width: 98vw;
    }
}
@media (max-width: 700px) {
    .hero-content {
        padding: 2.5rem 1rem 2.5rem 1rem;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .products-grid {
        gap: 1.1rem;
    }
}
/* --- Responsive Navigation --- */
@media (max-width: 900px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    background: #f5e7d4;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100vw;
    padding: 1rem 2rem 1rem 2rem;
    gap: 1.2rem;
    box-shadow: 0 6px 18px #e2d2b244;
    display: none;
    z-index: 99;
    transition: display 0.2s, opacity 0.2s;
  }
  .main-nav.show {
    display: flex !important;
  }
  .main-nav.collapsed {
    display: none !important;
  }
  .menu-toggle {
    display: inline-block !important;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    z-index: 100;
  }
  /* Always show the hamburger button on small screens */
  .menu-toggle {
    visibility: visible !important;
    opacity: 1 !important;
  }
}
@media (max-width: 900px) {
  .header-flex {
    position: relative;
  }
}
