/* ===================================
   ADETUTU HAIR - SHOP STYLESHEET
   Gallery, product displays, and shop features
   =================================== */

/* Gallery Section */
.gallery {
    background: #1a0f0a;
    padding: 100px 50px;
}

.gallery h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: #d4af37;
    font-weight: 300;
    letter-spacing: 3px;
    font-family: 'Georgia', serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26,15,10,0), rgba(26,15,10,0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: #d4af37;
    font-size: 20px;
    font-family: 'Georgia', serif;
}

/* Product Detail Styles (for product pages) */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.product-images {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #d4af37;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f7f5;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info {
    padding: 40px;
}

.product-title {
    font-size: 36px;
    color: #1a0f0a;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.product-price {
    font-size: 28px;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 30px;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4a3429;
    margin-bottom: 30px;
}

/* Product Options */
.product-options {
    margin-bottom: 40px;
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #1a0f0a;
}

.option-values {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-value {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.option-value:hover {
    border-color: #d4af37;
}

.option-value.selected {
    background: #d4af37;
    color: #1a0f0a;
    border-color: #d4af37;
}

/* Color Swatches */
.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #d4af37;
}

.color-swatch.selected {
    border-color: #d4af37;
}

.color-swatch.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #d4af37;
    background: white;
    color: #d4af37;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #d4af37;
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    font-size: 16px;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc, #d4af37);
    background-size: 200% 100%;
    color: #1a0f0a;
    border: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    background-position: -100% 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Cart Preview */
.cart-preview {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-preview.active {
    right: 0;
}

.cart-preview-header {
    padding: 20px;
    background: #1a0f0a;
    color: #d4af37;
    display: flex;
    justify-content: between;
    align-items: center;
}

.cart-preview-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-preview-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
}

/* Shop Filters */
.shop-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
}

.filter-dropdown {
    padding: 10px 20px;
    border: 2px solid #d4af37;
    background: white;
    color: #1a0f0a;
    cursor: pointer;
    min-width: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-dropdown:hover {
    background: #f9f7f5;
}

.filter-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #d4af37;
    border-top: none;
    display: none;
    z-index: 10;
}

.filter-options.active {
    display: block;
}

.filter-option {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-option:hover {
    background: #f9f7f5;
}

.filter-option.selected {
    background: #d4af37;
    color: #1a0f0a;
}

/* Product Grid View Toggle */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    padding: 8px 16px;
    border: 2px solid #d4af37;
    background: white;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
    background: #d4af37;
    color: white;
}

/* Product Tags */
.product-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.product-tag {
    padding: 5px 15px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    z-index: 1;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff4757;
}
