/*
Theme Name: Dreams Custom Theme
Theme URI: https://example.com/dreams-theme
Author: Antigravity
Author URI: https://example.com
Description: A custom WooCommerce theme inspired by dreams.co.uk
Version: 1.0.0
Text Domain: dreams-theme
*/

:root {
    --color-primary: #251163;
    --color-accent: #B95D75;
    --color-alert: #CB0000;
    --color-bg: #FFFFFF;
    --color-bg-secondary: #F4F4F4;
    --color-text: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5em;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation ul li {
    margin: 0;
}

.main-navigation ul li a {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-navigation ul li a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* WooCommerce Overrides */
.woocommerce ul.products,
.featured-products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.woocommerce ul.products li.product,
.featured-products ul.products li.product {
    width: 100%;
    margin: 0;
    text-align: center;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
}

.woocommerce ul.products li.product img {
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0;
}

.woocommerce ul.products li.product .price {
    color: var(--color-text);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.woocommerce .button,
.woocommerce a.button {
    background-color: var(--color-accent) !important;
    color: white !important;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

.woocommerce .button:hover,
.woocommerce a.button:hover {
    background-color: #A04A60 !important;
    /* Darker shade of accent */
    text-decoration: none;
}

.woocommerce span.onsale {
    background-color: var(--color-alert);
    min-height: auto;
    min-width: auto;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

/* Single Product Layout */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.single-product div.product .woocommerce-product-gallery {
    flex: 1 1 55%;
    display: flex;
    /* Establish flex context for thumbnails */
    flex-direction: row-reverse;
    /* Main image right, thumbs left */
    gap: 1rem;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
    width: 85%;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    width: 15%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 100%;
}

.single-product div.product .summary {
    flex: 1 1 40%;
}

/* Price & Meta */
.single-product .price {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2rem !important;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.single-product .price del {
    font-size: 1rem;
    color: #999;
    opacity: 1;
    font-weight: normal;
}

.single-product .price ins {
    text-decoration: none;
}

/* Promo Box */
.dreams-promo-box {
    background-color: var(--color-alert);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.dreams-promo-box h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.dreams-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 800;
}

.dreams-countdown .time-block {
    display: flex;
    flex-direction: column;
    font-family: monospace;
}

.dreams-countdown .time-block small {
    font-size: 0.6rem;
    font-family: var(--font-body);
    font-weight: 600;
}

/* Goes Well With */
.dreams-goes-well-with {
    background: white;
    border: 1px solid #eee;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.dreams-goes-well-with h4 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1rem;
}

.dreams-goes-well-with p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Add to Cart Area */
.single_add_to_cart_button {
    background-color: #B95D75 !important;
    width: 100%;
}