/* ======= GLOBAL STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-active {
    opacity: 1;
    transform: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #a67c52;
}

/* ======= HEADER STYLES ======= */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.logo p {
    font-size: 14px;
    color: #a67c52;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #a67c52;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: #a67c52;
}

/* ======= BUTTON STYLES ======= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #a67c52;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #8a6642;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #a67c52;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #8a6642;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
}

/* ======= PAGE HEADER ======= */
.page-header {
    background-color: #f5f5f5;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ======= PRODUCT DETAIL SECTION ======= */
.product-detail {
    padding: 80px 0;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-images {
    display: flex;
    flex-direction: column;
}

/* Gallery Slider Styles */
.gallery-slider {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.slide-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide-item {
    display: none;
    width: 100%;
}

.slide-item.active {
    display: block;
}

.slide-item img {
    width: 100%;
    height: auto;
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Navigation Arrows */
.slide-nav,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-prev { left: 15px; }
.slide-next { right: 15px; }

.slide-nav:hover,
.slide-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slide-nav:active,
.slide-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Slide Indicators (dots) */
.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: #a67c52;
    box-shadow: 0 0 0 2px #a67c52;
}

/* Color Display */
.color-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #a67c52;
}

.color-swatch-display {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.color-display .color-name {
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.color-display .color-hex {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .color-display {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .color-swatch-display {
        width: 40px;
        height: 40px;
    }
    
    .color-display .color-name {
        min-width: auto;
    }
}

.product-info-detail {
    display: flex;
    flex-direction: column;
}

.category {
    color: #a67c52;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-info-detail h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating i {
    color: #ffd700;
    margin-right: 3px;
}

.rating span {
    color: #777;
    font-size: 0.9rem;
    margin-left: 10px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #a67c52;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.product-description ul li {
    margin-bottom: 8px;
}

.product-variants {
    margin-bottom: 30px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.variant-options {
    display: flex;
    gap: 10px;
}

.variant-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-btn:hover,
.variant-btn.active {
    border-color: #a67c52;
    background-color: #a67c52;
    color: white;
}

.color-options {
    display: flex;
    gap: 15px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
}

.color-btn.active:after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #a67c52;
    border-radius: 50%;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-meta p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #777;
}

.product-meta a {
    color: #a67c52;
}

.product-meta a:hover {
    text-decoration: underline;
}

/* ======= PRODUCT TABS ======= */
.product-tabs {
    margin-bottom: 60px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #a67c52;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #333;
}

.tab-btn.active:after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======= RELATED PRODUCTS ======= */
.related-products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #ffffffcc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price {
    color: #a67c52;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ======= FOOTER STYLES ======= */
footer {
    background-color: #222;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #a67c52;
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #aaa;
}

.footer-section a {
    color: #aaa;
}

.footer-section a:hover {
    color: #a67c52;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #a67c52;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    .tab-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 0 50%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity {
        margin-bottom: 15px;
    }
}
