/*
Theme Name: My Custom Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A clean, custom WordPress theme with full WooCommerce support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
Tags: custom, woocommerce, responsive, e-commerce
WC requires at least: 7.0
WC tested up to: 8.5
*/

/* =============================================
   Base Reset & Typography
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:    #2563eb;
    --color-secondary:  #1e40af;
    --color-accent:     #f59e0b;
    --color-text:       #1f2937;
    --color-muted:      #6b7280;
    --color-bg:         #ffffff;
    --color-surface:    #f9fafb;
    --color-border:     #e5e7eb;
    --color-success:    #10b981;
    --color-error:      #ef4444;

    --font-base:        'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading:     var(--font-base);
    --font-size-base:   16px;
    --line-height:      1.6;

    --radius:           6px;
    --radius-lg:        12px;
    --shadow:           0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);

    --container-width:  1200px;
    --container-pad:    1.5rem;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   Layout Helpers
   ============================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: 3rem 0;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .75rem;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p  { margin-bottom: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--color-secondary); }

/* =============================================
   Buttons
   ============================================= */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: .6rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
    text-align: center;
}
.btn:hover,
button:hover,
input[type="submit"]:hover { background: var(--color-secondary); color: #fff; }
.btn:active { transform: scale(.98); }

/* =============================================
   Forms
   ============================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* =============================================
   Site Header
   ============================================= */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    isolation: isolate;
    box-shadow: var(--shadow);
}
/* Guarantee full opacity even if a background color was set with an alpha
   channel elsewhere (e.g. via Customizer > Additional CSS) — a see-through
   header is what lets scrolling content show through it. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: -1;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding .site-title {
    font-size: 1.5rem;
    margin: 0;
}
.site-branding .site-title a { color: var(--color-text); }
.site-branding .site-description {
    font-size: .8rem;
    color: var(--color-muted);
    margin: 0;
}

/* =============================================
   Navigation
   ============================================= */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: .25rem;
}
.main-navigation a {
    display: block;
    padding: .5rem .75rem;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: background .2s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: var(--color-surface);
    color: var(--color-primary);
}

/* =============================================
   Site Footer
   ============================================= */
.site-footer {
    background: var(--color-text);
    color: #d1d5db;
    padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #fff; }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-info {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .875rem;
    color: #9ca3af;
}

/* =============================================
   WooCommerce Overrides
   ============================================= */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    padding: 1rem 1rem .25rem;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    padding: 0 1rem .75rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.woocommerce ul.products li.product .button {
    display: block;
    margin: 0 1rem 1rem;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .2s ease;
}
.woocommerce ul.products li.product .button:hover { background: var(--color-secondary); }

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.woocommerce-message { background: #ecfdf5; border-left: 4px solid var(--color-success); color: #065f46; }
.woocommerce-error   { background: #fef2f2; border-left: 4px solid var(--color-error);   color: #991b1b; }
.woocommerce-info    { background: #eff6ff; border-left: 4px solid var(--color-primary);  color: #1e40af; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation ul {
        flex-wrap: wrap;
    }
}
.video-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:40px auto;
}

.video-card{
    border:1px solid #ddd;
    border-radius:10px;
    overflow:hidden;
}

.video-card img{
    width:100%;
    display:block;
}

.video-card h3{
    padding:15px;
    font-size:16px;
}

.video-card a{
    text-decoration:none;
    color:#222;
}
.swiper-slide .ms-card .ms-card__image-wrap img {
	min-height: 242px !important;
}