/* Collections Specific CSS */

/* Overrides for header active state */
.main-nav a.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.2rem;
}

/* Hero Collections */
.collections-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-image: url('images/hero_final.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.collections-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(251, 249, 245, 0.4), rgba(15, 10, 5, 0.1));
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: right;
    width: 100%;
}

.hero-text-content {
    max-width: 600px;
    background: rgba(251, 249, 245, 0.85);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(27, 28, 26, 0.08);
}

.badge {
    background-color: var(--surface-highest);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--on-surface-variant);
}

.hero-text-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text-content p {
    font-size: 1.1rem;
    color: var(--on-surface-variant);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn.default {
    background: transparent;
    border: 1px solid rgba(115, 120, 114, 0.4);
    color: var(--on-surface);
}

.btn.default:hover {
    background-color: var(--surface-highest);
}

/* Collections Layout structure */
.collections-main {
    padding: 4rem 0;
    background-color: var(--surface);
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .layout-grid {
        grid-template-columns: 280px 1fr;
    }
}

.full-width-layout {
    width: 100%;
    padding-right: 0.5rem; /* literally pinning it to the edge */
    padding-left: 2rem;
}

@media (min-width: 900px) {
    .full-width-layout .sidebar {
        padding-right: 1.5rem; /* Internal breathing room */
        background-color: var(--surface); /* Keeps it neat since it touches the edge */
    }
    .full-width-layout .content-area {
        max-width: 1100px; /* Prevent over-stretch on big screens */
        margin-right: 3rem;
    }
}

.sidebar {
    position: sticky;
    top: 190px;
    height: max-content;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(115, 120, 114, 0.2);
}

.clear-btn {
    background: none;
    border: none;
    color: var(--on-surface-variant);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 2.5rem;
}

.filter-dropdown {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--surface-highest);
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.filter-dropdown:hover {
    background-color: #d8d6d2;
}

.filter-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: color 0.2s;
}

.filter-list li:hover {
    color: var(--primary);
}

.price-slider {
    padding: 1rem 0;
    position: relative;
    direction: ltr;
    /* Sliders natively work LTR better in HTML forms */
}

.range-slider {
    height: 4px;
    background: var(--surface-highest);
    border-radius: 2px;
    position: relative;
    margin-top: 1rem;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: var(--primary);
    left: 0%;
    right: 0%;
}

.range-inputs {
    position: absolute;
    top: 1rem;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.range-inputs input[type="range"] {
    position: absolute;
    width: 100%;
    top: -6px;
    height: 4px;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    margin: 0;
    padding: 0;
    outline: none;
}

.range-inputs input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.range-inputs input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    appearance: none;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Main Area Elements */
.info-banner {
    background-color: #eaf1eb;
    /* Soft green */
    border-radius: 0.5rem;
    padding: 3rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.info-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.info-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-content a {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.info-graphics {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 300px;
    background-image: radial-gradient(circle at left, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid-3 {
        grid-template-columns: 1fr;
    }
}

.product-info-aligned {
    text-align: center;
    padding-top: 1rem;
}

.product-info-aligned h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.rating-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(115, 120, 114, 0.1);
}

.rating {
    color: #cca43b;
    /* Gold star color */
    font-size: 0.9rem;
    display: flex;
    gap: 0.2rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--surface);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(27, 28, 26, 0.08);
}

/* Bottom Commitment */
.commitment-section {
    background-color: #f7ede2;
    /* Beige color matching the screenshot */
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zigzag-top {
    position: relative;
    margin-top: 30px;
}

.zigzag-top::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: linear-gradient(135deg, #f7ede2 25%, transparent 25%),
        linear-gradient(225deg, #f7ede2 25%, transparent 25%);
    background-size: 40px 40px;
    background-position: left top;
    z-index: 10;
}

.commitment-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.commitment-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.commitment-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--on-surface-variant);
    line-height: 1.8;
}

/* --- Gifts Redesign Styles (Google Stitch Match) --- */
.gifts-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-image: url('images/gifts_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.gifts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(251, 249, 245, 0.4), rgba(15, 10, 5, 0.1));
}

.gifts-hero .container {
    position: relative;
    z-index: 2;
    background: rgba(251, 249, 245, 0.9);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(27, 28, 26, 0.08);
    max-width: 800px;
}

.gifts-h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--on-surface);
}

.gifts-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--on-surface-variant);
}

.gifts-main {
    padding: 3rem 0 6rem;
    background: #fafafa;
}

.gifts-sorting {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sort-select-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sort-select-wrapper select {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0.8rem 2rem 0.8rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    min-width: 200px;
}

.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid-4 {
        grid-template-columns: 1fr;
    }
}

.stitch-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid #eee;
}

.product-info-stitch {
    padding: 1.5rem;
    flex-grow: 1;
}

.product-info-stitch h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-info-stitch .price {
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-full-dark {
    width: 100%;
    background-color: #222;
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
}

.btn-full-dark:hover {
    background-color: #000;
}