/**
 * DomainUI Theme 2 (Theme 5) Styles
 * Clean e-commerce design with maroon/burgundy accents
 */

/* ===== Theme 5 Variables ===== */
:root {
    --theme5-primary: #722F37;
    --theme5-primary-dark: #5a252c;
    --theme5-primary-light: #8b3d47;
    --theme5-bg-cream: #FAF8F5;
    --theme5-bg-light: #FDF9F3;
    --theme5-text-dark: #333333;
    --theme5-text-muted: #666666;
    --theme5-border: #E8E0D8;
    --theme5-white: #FFFFFF;
    --theme5-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --theme5-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

/* ===== Theme 5 Header ===== */
.theme5-header {
    background: var(--theme5-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.theme5-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.theme5-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.theme5-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--theme5-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.theme5-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme5-text-dark);
}

.theme5-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.theme5-nav a {
    color: var(--theme5-text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.theme5-nav a:hover {
    color: var(--theme5-primary);
}

.theme5-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.theme5-nav-row .theme5-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.theme5-search {
    position: relative;
    width: 280px;
}

.theme5-search input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--theme5-border);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.theme5-search input:focus {
    border-color: var(--theme5-primary);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.theme5-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--theme5-primary);
    cursor: pointer;
    font-size: 16px;
}

/* Trust Badges Bar */
.theme5-trust-bar {
    background: var(--theme5-bg-cream);
    border-top: 1px solid var(--theme5-border);
    padding: 10px 30px;
}

.theme5-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.theme5-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--theme5-text-muted);
}

.theme5-badge i {
    color: var(--theme5-primary);
    font-size: 14px;
}

.theme5-badge .amazon-text {
    color: #FF9900;
    font-weight: 600;
}

/* ===== Shop by Category Section ===== */
.theme5-categories-section {
    background: var(--theme5-white);
    padding: 50px 30px;
    text-align: center;
}

.theme5-categories-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme5-text-dark);
    margin-bottom: 8px;
}

.theme5-categories-section .subtitle {
    font-size: 15px;
    color: var(--theme5-text-muted);
    margin-bottom: 35px;
}

.theme5-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.theme5-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.theme5-category-item:hover {
    transform: translateY(-5px);
}

.theme5-category-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--theme5-border);
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.theme5-category-item:hover .theme5-category-circle {
    border-color: var(--theme5-primary);
}

.theme5-category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme5-category-item span {
    font-size: 13px;
    color: var(--theme5-text-dark);
    font-weight: 500;
}

/* Price Filter Buttons */
.theme5-price-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.theme5-price-btn {
    padding: 10px 24px;
    border: 1px solid var(--theme5-border);
    border-radius: 25px;
    background: var(--theme5-white);
    color: var(--theme5-text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.theme5-price-btn:hover,
.theme5-price-btn.active {
    background: var(--theme5-primary);
    border-color: var(--theme5-primary);
    color: white;
}

/* ===== Best Sellers Section ===== */
.theme5-bestsellers-section {
    background: var(--theme5-bg-cream);
    padding: 0 30px 50px;
}

.theme5-section-header {
    background: var(--theme5-primary);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.theme5-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.theme5-section-header a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme5-section-header a:hover {
    text-decoration: underline;
}

/* Product Grid */
.theme5-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    background: var(--theme5-white);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--theme5-shadow);
}

@media (max-width: 1200px) {
    .theme5-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 600px) {
    .theme5-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product Card */
.theme5-product-card {
    background: var(--theme5-white);
    border: 1px solid var(--theme5-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.theme5-product-card:hover {
    box-shadow: var(--theme5-shadow-hover);
    transform: translateY(-3px);
}

.theme5-product-image {
    position: relative;
    padding-top: 100%;
    background: #f9f9f9;
}

.theme5-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.theme5-product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.theme5-product-title {
    font-size: 13px;
    color: var(--theme5-text-dark);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.theme5-product-price {
    margin-bottom: 10px;
}

.theme5-price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme5-primary);
}

.theme5-price-old {
    font-size: 13px;
    color: var(--theme5-text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.theme5-product-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--theme5-primary);
    color: white;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.theme5-product-btn:hover {
    background: var(--theme5-primary-dark);
    color: white;
}

/* ===== Why Visitors Love Section ===== */
.theme5-why-section {
    background: var(--theme5-white);
    padding: 50px 30px;
}

.theme5-why-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .theme5-why-container {
        grid-template-columns: 1fr;
    }
}

.theme5-why-left h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme5-text-dark);
    margin-bottom: 20px;
}

.theme5-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme5-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--theme5-text-muted);
}

.theme5-why-list li i {
    color: var(--theme5-primary);
    font-size: 16px;
    margin-top: 2px;
}

.theme5-guides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.theme5-guide-card {
    background: var(--theme5-bg-light);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.theme5-guide-card:hover {
    box-shadow: var(--theme5-shadow-hover);
}

.theme5-guide-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.theme5-guide-card-content {
    padding: 15px;
}

.theme5-guide-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme5-text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.theme5-guide-card a {
    font-size: 13px;
    color: var(--theme5-primary);
    text-decoration: none;
    font-weight: 500;
}

.theme5-guide-card a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.theme5-footer {
    background: var(--theme5-primary);
    color: white;
    padding: 20px 30px;
}

.theme5-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.theme5-footer-title {
    font-size: 16px;
    font-weight: 600;
}

.theme5-footer-links {
    display: flex;
    gap: 30px;
}

.theme5-footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.theme5-footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ===== Product Page Specific ===== */
.theme5-product-page {
    background: var(--theme5-bg-cream);
    min-height: 100vh;
}

.theme5-breadcrumb {
    padding: 15px 30px;
    background: var(--theme5-white);
    border-bottom: 1px solid var(--theme5-border);
    font-size: 13px;
    color: var(--theme5-text-muted);
}

.theme5-breadcrumb a {
    color: var(--theme5-primary);
    text-decoration: none;
}

.theme5-product-detail {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--theme5-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--theme5-shadow);
}

@media (max-width: 768px) {
    .theme5-product-detail {
        grid-template-columns: 1fr;
    }
}

.theme5-product-gallery img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--theme5-border);
}

.theme5-product-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme5-text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.theme5-product-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--theme5-primary);
    margin-bottom: 20px;
}

.theme5-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--theme5-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.theme5-buy-btn:hover {
    background: var(--theme5-primary-dark);
    color: white;
}

.theme5-buy-btn i {
    font-size: 18px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .theme5-nav-row {
        display: none;
    }
}

@media (max-width: 768px) {
    .theme5-header-top {
        flex-wrap: wrap;
        gap: 15px;
        padding: 12px 15px;
    }

    .theme5-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .theme5-search {
        width: 100%;
        max-width: 300px;
    }

    .theme5-trust-badges {
        flex-wrap: wrap;
        gap: 15px;
    }

    .theme5-categories-section {
        padding: 30px 15px;
    }

    .theme5-category-grid {
        gap: 15px;
    }

    .theme5-category-circle {
        width: 70px;
        height: 70px;
    }

    .theme5-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .theme5-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}
