/* UK Computer Parts - WooCommerce-Style Theme */

:root {
    --primary: #0073aa;
    --primary-dark: #005a87;
    --secondary: #23282d;
    --accent: #00a32a;
    --dark: #1d2327;
    --gray: #646970;
    --light-gray: #f0f0f1;
    --white: #ffffff;
    --border: #dcdcde;
    --success: #00a32a;
    --warning: #dba617;
    --font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    font-size: 14px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ======================================
   HEADER
   ====================================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-top {
    background: var(--secondary);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    gap: 20px;
}

.header-top-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top-left a,
.header-top-right a {
    color: var(--white);
}

.header-top-left a:hover,
.header-top-right a:hover {
    color: var(--accent);
}

.header-top-right {
    display: flex;
    gap: 20px;
}

.header-top-right a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.search-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    border: 2px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}

.search-form button {
    background: var(--primary);
    border: none;
    padding: 12px 18px;
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--primary-dark);
}

.header-cart {
    position: relative;
}

.header-cart a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 600;
}

.header-cart i {
    font-size: 24px;
}

.header-cart .cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* ======================================
   NAVIGATION
   ====================================== */
.main-navigation {
    background: var(--primary);
}

.main-navigation .container {
    display: flex;
}

.nav-menu {
    display: flex;
    width: 100%;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 18px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(0,0,0,0.15);
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 10px;
    margin-left: 3px;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 12px 18px;
    color: var(--dark);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: var(--light-gray);
    color: var(--primary);
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #008a22;
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

/* ======================================
   CATEGORIES SECTION
   ====================================== */
.categories-section {
    padding: 50px 0;
    background: var(--light-gray);
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 35px;
    color: var(--dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-box {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.category-box:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.category-box i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.category-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-box span {
    font-size: 13px;
    color: var(--gray);
}

/* ======================================
   PRODUCTS SECTION
   ====================================== */
.products-section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.view-all-link {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card .product-image {
    aspect-ratio: 1;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-image i {
    font-size: 48px;
    color: var(--gray);
}

.product-info {
    padding: 15px;
}

.product-brand {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark);
}

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.product-actions .btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 13px;
}

.btn-small {
    padding: 10px 15px;
    font-size: 13px;
}

/* ======================================
   FEATURES SECTION
   ====================================== */
.features-section {
    padding: 50px 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 25px 20px;
}

.feature-box i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.feature-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-box p {
    font-size: 13px;
    color: var(--gray);
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 50px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-widget p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.footer-widget ul li a:hover {
    color: var(--white);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    width: 16px;
    text-align: center;
    color: var(--accent);
}

.contact-info a {
    color: rgba(255,255,255,0.7);
}

.contact-info a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.2s;
}

.social-icons a:hover {
    background: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ======================================
   WHATSAPP BUTTON
   ====================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* ======================================
   PAGE HEADER
   ====================================== */
.page-header {
    background: var(--light-gray);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ======================================
   SHOP PAGE
   ====================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.shop-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 25px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h4 {
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-size: 13px;
    padding: 5px 0;
}

.category-list li a:hover {
    color: var(--primary);
}

.category-list li a i {
    font-size: 12px;
    color: var(--primary);
}

.shop-main {
    min-width: 0;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 13px;
    color: var(--gray);
}

.shop-filters {
    display: flex;
    gap: 10px;
}

.shop-filters select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--dark);
    background: var(--white);
}

/* ======================================
   CONTENT PAGES
   ====================================== */
.content-section {
    padding: 40px 0;
}

.content-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 25px;
}

.content-box h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark);
}

.content-box h3 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: var(--dark);
}

.content-box p {
    margin-bottom: 15px;
    color: var(--gray);
}

.content-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-box ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: var(--gray);
}

/* Two Column Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ======================================
   FORMS
   ====================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ======================================
   ACCOUNT PAGE
   ====================================== */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.account-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 30px;
}

.account-box h2 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

/* ======================================
   CART PAGE
   ====================================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: var(--light-gray);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.cart-table td {
    vertical-align: middle;
}

.cart-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark);
}

.cart-item-remove {
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
}

.cart-item-remove:hover {
    color: #a71d2a;
}

.qty-input {
    width: 60px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
}

.cart-summary {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 4px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ======================================
   CHECKOUT PAGE
   ====================================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.order-summary {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 4px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 991px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .search-form {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        display: none;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        display: none;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
    
    .submenu li a {
        color: var(--white);
        border-bottom-color: rgba(255,255,255,0.1);
        padding-left: 30px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .two-col-grid,
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        font-size: 13px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .header-cart .cart-total {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 15px;
    }
}

/* ======================================
   UTILITY CLASSES
   ====================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.no-products {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    grid-column: 1 / -1;
}

/* ======================================
   STOCK BADGES & DELIVERY
   ====================================== */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 8px 0;
}

.stock-badge.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-badge.low-stock {
    background: #fff3e0;
    color: #e65100;
}

.stock-badge.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.delivery-estimate {
    font-size: 11px;
    color: var(--gray);
    margin: 5px 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delivery-estimate i {
    color: var(--accent);
}