/*
Theme Name: British Select
Theme URI: https://example.com/british-select
Author: Your Name
Author URI: https://example.com
Description: A premium British-style e-commerce theme with full WooCommerce support.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: british-select
Tags: e-commerce, business, british, responsive, woocommerce
*/

/* CSS Variables */
:root {
    --navy-blue: #00247D;
    --red: #CF142B;
    --cream: #F9F9F9;
    --white: #FFFFFF;
    --dark-text: #333333;
    --grey: #666666;
    --border: #E0E0E0;
    --gold: #D4AF37;
}

/* Base Styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--cream);
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", serif;
    color: var(--navy-blue);
    margin-top: 0;
    font-weight: 600;
}
a { color: var(--navy-blue); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
p { margin-bottom: 15px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-bar {
    background: var(--navy-blue);
    color: white;
    text-align: center;
    font-size: 0.75rem;
    padding: 8px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    font-style: italic;
    font-family: "Georgia", serif;
    margin: 0;
}
.site-title span { color: var(--red); }
.site-title a { color: var(--navy-blue); }

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
.main-navigation a {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
}
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: 0.3s;
}
.main-navigation a:hover::after { width: 100%; }

/* Header Cart */
.header-actions { display: flex; gap: 20px; align-items: center; }
.header-cart {
    position: relative;
    font-size: 1.3rem;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Slider */
.hero-slider { position: relative; height: 550px; overflow: hidden; background: var(--navy-blue); }
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 36, 125, 0.4);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 20px; }
.hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}
.btn-slider {
    display: inline-block;
    padding: 14px 35px;
    background: var(--red);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
    border: 2px solid var(--red);
}
.btn-slider:hover {
    background: white;
    color: var(--navy-blue);
    border-color: white;
}
.btn-slider-outline {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-slider-outline:hover {
    background: white;
    color: var(--navy-blue);
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
}
.slider-dot.active { background: var(--red); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}
.slider-arrow:hover { background: rgba(255,255,255,0.4); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Features Bar */
.features-bar {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.feature-item i {
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 15px;
    display: block;
}
.feature-item h4 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-item p { font-size: 0.9rem; color: var(--grey); margin: 0; }

/* Main Layout */
.site-content { padding: 50px 0; }
.grid-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}
.full-width { grid-template-columns: 1fr; }

/* Section Titles */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 10px; }
.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--red);
    margin: 0 auto;
}

/* Product Grid */
.products-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: white;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
    background: #f8f8f8;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.product-loop-add-btn {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: var(--navy-blue);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
}
.product-card:hover .product-loop-add-btn { bottom: 0; opacity: 1; }
.product-info { padding: 20px; text-align: center; }
.product-cat {
    font-size: 0.75rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.product-title {
    font-size: 1rem;
    font-family: "Georgia", serif;
    margin-bottom: 10px;
}
.product-title a { color: var(--navy-blue); }
.product-title a:hover { color: var(--red); }
.product-price { font-weight: bold; color: var(--dark-text); font-size: 1.1rem; }
.product-price ins { text-decoration: none; color: var(--red); }
.product-price del { color: var(--grey); font-weight: normal; margin-right: 8px; font-size: 0.9rem; }
.star-rating { color: #ffc107; font-size: 0.8rem; margin-bottom: 10px; }

/* Post Card (Blog) */
.post-card {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.post-card h2 { font-size: 1.8rem; margin-bottom: 15px; }
.post-card .entry-meta {
    color: var(--grey);
    font-size: 0.85rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}
.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: var(--navy-blue);
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
}
.read-more:hover { background: var(--red); color: white; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #001a55 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}
.page-header h1 { color: white; font-size: 2.8rem; margin-bottom: 10px; }
.page-header .breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.page-header .breadcrumb a { color: white; }

/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--red);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.sidebar-widget ul li:last-child { border-bottom: none; }

/* WooCommerce Styles */
.woocommerce-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}
.woocommerce-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--border);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.woocommerce table.shop_table th { background: #f9f9f9; font-weight: bold; }
.woocommerce table.shop_table img { width: 70px; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--navy-blue);
    color: white;
    padding: 12px 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 0;
    border: none;
    cursor: pointer;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--red);
    color: white;
}
.woocommerce a.button.alt { background: var(--red); }
.woocommerce a.button.alt:hover { background: var(--navy-blue); }
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce select,
.woocommerce textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
}
.woocommerce input:focus,
.woocommerce textarea:focus {
    outline: 2px solid var(--navy-blue);
    border-color: var(--navy-blue);
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}
.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}
.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--red);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.value-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.value-icon {
    width: 70px;
    height: 70px;
    background: var(--navy-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info-box {
    background: white;
    padding: 40px;
    border: 1px solid var(--border);
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--navy-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-text h4 { font-size: 1rem; margin-bottom: 5px; }
.contact-text p { margin: 0; color: var(--grey); }
.business-hours {
    background: #f9f9f9;
    padding: 30px;
    margin-top: 30px;
    border-left: 4px solid var(--red);
}
.business-hours h4 { margin-bottom: 15px; }
.business-hours ul { list-style: none; padding: 0; }
.business-hours li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border: 1px solid var(--border);
}
.contact-form-wrapper h3 { margin-bottom: 30px; font-size: 1.5rem; }
.woocommerce-form-row { margin-bottom: 20px; }
.woocommerce-form-row label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.woocommerce-form-row input,
.woocommerce-form-row textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    transition: 0.3s;
}
.woocommerce-form-row input:focus,
.woocommerce-form-row textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(0, 36, 125, 0.1);
}
.woocommerce-form-row textarea { min-height: 150px; resize: vertical; }

/* Map Section */
.map-section { height: 400px; background: #e9ecef; margin-top: 60px; }
.map-section iframe { width: 100%; height: 100%; border: none; }

/* Footer */
.site-footer {
    background: #111;
    color: #888;
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-widget h4 {
    color: white;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 10px; }
.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border);
    background: white;
    color: var(--dark-text);
}
.pagination .current {
    background: var(--navy-blue);
    color: white;
    border-color: var(--navy-blue);
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid, .values-grid { grid-template-columns: 1fr; }
    .products-wrapper { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .products-wrapper { grid-template-columns: repeat(2, 1fr); }
    .header-inner { flex-wrap: wrap; gap: 15px; }
    .main-navigation { order: 3; width: 100%; justify-content: center; }
    .main-navigation ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .slider-arrow { display: none; }
}
