/* =========================================
   SHOP PAGE SPECIFIC STYLES
   ========================================= */

/* --- 1. Shop Header & Controls --- */
.shop-header {
    padding: 40px 5% 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    max-width: 1400px;
    margin-inline: auto;
}

.shop-header h1 {
    font-size: 3rem;
    letter-spacing: 0.05em;
}

.shop-controls {
    display: flex;
    gap: 30px;
}

.filter-btn, .sort-btn {
    background: none;
    border: none;
    font-family: var(--font-body); /* Uses the global font */
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.filter-btn:hover, .sort-btn:hover {
    color: gray;
}

/* --- 2. The Auto-Adjusting Product Grid --- */
.shop-grid-section {
    padding: 0 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-grid {
    display: grid;
    /* This ONE line replaces all your manual top/left positioning! */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px 25px; /* Spacing between rows and columns */
}

/* --- 3. Individual Product Cards --- */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
}

/* Image Wrapper & Hover Button */
.product-image-wrapper {
    position: relative;
    background-color: var(--bg-beige);
    aspect-ratio: 1 / 1.1; /* Makes them slightly taller than wide */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 85%; /* Gives some breathing room inside the box */
    height: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08); /* Premium slow zoom */
}

/* Slide-up 'Add to Bag' Button */
.add-to-bag-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transform: translateY(100%); /* Hides it below the image initially */
    transition: transform 0.4s ease;
    cursor: pointer;
}

.product-card:hover .add-to-bag-btn {
    transform: translateY(0); /* Slides up on hover */
}

.add-to-bag-btn:hover {
    background-color: #333; /* Slightly lighter black when hovered */
}

/* --- 4. Product Text Info --- */
.product-info {
    text-align: left;
}

.rating {
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--black);
}

.rating span {
    color: var(--text-dark);
    margin-left: 8px;
    font-family: sans-serif;
    font-size: 0.75rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-info .desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-info .price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--black);
}

/* --- 5. Tall Promo Banners mixed in Grid --- */
.promo-banner {
    position: relative;
    background-color: var(--black);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    cursor: pointer;
}

.tall-banner {
    grid-row: span 2; /* Tells the grid to make this box 2 rows tall! */
}

.promo-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.8s ease;
}

.promo-banner:hover img {
    transform: scale(1.05);
}

.promo-text {
    position: relative;
    color: var(--white);
    font-size: 2.2rem;
    z-index: 1;
    line-height: 1.1;
    font-style: italic;
}

/* --- 6. Product Count Divider --- */
.product-count {
    text-align: center;
    margin-top: 60px;
    font-family: sans-serif;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.count-line {
    height: 2px;
    background-color: #d5a70f; /* Your original gold/yellow color */
    width: 150px;
    margin: 20px auto 0;
}

/* --- 7. Bottom Value Propositions --- */
.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.prop-card {
    background-color: var(--bg-beige);
    display: flex;
    flex-direction: column;
}

.prop-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.prop-card h3 {
    font-size: 1.5rem;
    padding: 25px 25px 10px;
}

.prop-card a {
    font-family: sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0 25px 30px;
    display: inline-block;
}

.prop-card a:hover {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

