.footer-section ul li span {
    color: inherit;
    text-decoration: none;
    cursor: default;
    pointer-events: none;
}
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        left: 0;
        z-index: 1350;
        box-shadow: 10px 0 30px rgba(0,0,0,0.08);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    #mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1300;
    }
    .sidebar-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--grey);
        z-index: 1360;
    }
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1250;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}
@media (max-width: 900px) {
    :root {
        --header-height: 125px;
    }
    .top-header {
        height: var(--header-height) !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-content: space-between !important;
        padding: 8px 16px 12px 16px !important;
    }
    .header-left {
        width: 45% !important;
        display: flex !important;
        align-items: center !important;
        height: 52px !important;
        margin-right: 0 !important;
        order: 1 !important;
    }
    .header-actions {
        width: 45% !important;
        justify-content: flex-end !important;
        align-items: center !important;
        height: 52px !important;
        margin-left: auto !important;
        gap: 0 !important;
        order: 2 !important;
    }
    #logo-home,
    #logo {
        position: absolute !important;
        left: 50% !important;
        top: 8px !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 52px !important;
        z-index: 10 !important;
    }
    .site-logo, .logo img {
        height: 56px !important; 
        max-width: 155px !important; 
        object-fit: contain !important;
        display: block !important;
    }
    .search-container {
        display: flex !important; 
        position: relative !important;
        left: unset !important;
        top: unset !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 10px !important;
        margin-bottom: 2px !important;
        height: 42px !important;
            border-radius: 0 !important;
        background: #f3f4f6 !important;
        border: 1px solid var(--border) !important;
        z-index: 5 !important;
        order: 3 !important;
    }
    .search-container input {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
        background: transparent !important;
    }
        .search-container button {
            padding: 6px 14px !important;
            border-radius: 0 !important;
        }
    .grades-inline-text .grades-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .grades-inline-text .grade-card {
        grid-template-columns: 72px 1fr !important;
        column-gap: 16px !important;
    }
    .mega-column > *:not(h3) {
        font-weight: 400 !important;
    }
}
@media (max-width: 480px) {
    .site-logo, .logo img {
        height: 48px !important; 
        max-width: 135px !important; 
    }
    .login-btn span,
    .header-actions .catalog-btn span {
        display: none !important;
    }
    .login-btn i,
    .cart-icon i {
        font-size: 1.7rem !important;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .login-btn svg,
    .cart-icon svg {
        width: 26px !important;
        height: 26px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .cart-count {
        top: -2px;
        right: -2px;
        min-width: 16px;
        height: 16px;
        font-size: 0.7rem;
    }
    .header-actions {
        gap: 0;
    }
}
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .product-card {
        padding: 6px !important;
    }
    .product-image {
        height: 180px !important;
        padding: 4px !important;
    }
    .product-info h4 {
        font-size: 0.92rem !important;
        margin-bottom: 4px !important;
    }
    .price {
        font-size: 0.98rem !important;
    }
    .cart-count {
        font-size: 0.7rem !important;
        min-width: 14px !important;
        height: 14px !important;
    }
}
@media (max-width: 480px) {
    .cart-drawer {
        width: 100vw !important;
        right: -100vw;
        max-width: 100vw;
        min-width: 0;
        border-radius: 0 !important;
    }
    .cart-drawer.open {
        transform: translateX(-100vw);
    }
    .cart-header, .cart-footer, .cart-items {
        padding: 16px !important;
    }
}
@media (max-width: 768px) {
    .page-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-top: 30px !important;
    }
    .sell-steps {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
}
@media (max-width: 600px) {
    .top-info-bar {
        position: fixed !important;
        overflow: hidden !important;
        display: block !important;
        height: var(--top-bar-height) !important;
        width: 100% !important;
        background: var(--dark) !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .top-info-bar span {
        display: flex !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        opacity: 0;
        visibility: hidden;
        font-weight: 700 !important;
        font-size: 0.82rem !important;
        gap: 6px !important;
        transform: translateY(12px);
        animation: topInfoBarSlide 12s infinite ease-in-out;
        animation-fill-mode: both;
    }
    .top-info-bar span i {
        margin-right: 4px !important;
    }
    .top-info-bar span:nth-child(1) {
        animation-delay: 0s !important;
    }
    .top-info-bar span:nth-child(2) {
        animation-delay: 3s !important;
    }
    .top-info-bar span:nth-child(3) {
        animation-delay: 6s !important;
    }
    .top-info-bar span:nth-child(4) {
        animation-delay: 9s !important;
    }
}
@keyframes topInfoBarSlide {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
    }
    4%, 21% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    25%, 100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
    }
}
:root {
    --primary: #111827; 
    --primary-light: #f3f4f6;
    --dark: #111827;
    --light: #f9fafb;
    --grey: #4b5563; 
    --border: #d1d5db;
    --white: #ffffff;
    --success: #065f46; 
    --error: #991b1b; 
    --sale: #b91c1c;
    --sidebar-width: 300px;
    --header-height: 120px;
    --top-bar-height: 36px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    background: #ef4444;
    color: white;
    padding: 12px 20px;
    z-index: 3000;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.skip-link:focus {
    top: 10px;
}
*:focus-visible {
    outline: 2px solid #ef4444 !important;
    outline-offset: 2px !important;
}
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        transition-delay: -1ms !important;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segø UI', Roboto, sans-serif;
    background-color: #f8f9fa; 
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.7; 
    letter-spacing: 0.015em; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
}
.top-info-bar {
    height: var(--top-bar-height);
    background: var(--dark); 
    color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 0.8rem; 
    font-weight: 600; 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    letter-spacing: 0.05em;
    border-bottom: 3px solid var(--sale);
}
.top-info-bar i {
    margin-right: 8px;
    color: var(--primary);
}
.top-header {
    height: var(--header-height);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: var(--top-bar-height);
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo img,
.site-logo {
    display: block;
    height: 80px;
    width: auto;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
}
#logo-home,
#logo {
    margin-left: 60px;
}
.logo span {
    color: var(--primary);
}
.search-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, calc(100% - 200px));
    display: flex;
    background: var(--light);
    border-radius: 0;
    padding: 5px;
    margin: 0;
    border: 1px solid var(--border);
}
.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 0.9rem;
}
.search-container button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
}
.search-container button:hover {
    background: var(--dark);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.icon-btn, .catalog-btn, .login-btn {
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-btn {
    color: var(--grey);
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.95rem;
    background: transparent;
}
.login-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.login-btn i {
    font-size: 1.2rem;
}
.login-btn svg,
.cart-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition);
}
.cart-icon {
    font-size: 1.2rem;
    color: var(--grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    background: transparent;
}
.cart-icon {
    background: transparent;
}
.cart-icon,
.login-btn {
    background: transparent;
}
.cart-icon {
    background: transparent;
}
.cart-icon {
    background: transparent;
}
@media (hover: none) {
    .cart-icon {
        background: transparent;
    }
}
.cart-icon {
    background: transparent;
}
.login-btn,
.cart-icon {
    background: transparent;
}
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.basket-text {
    font-size: 0.95rem;
    font-weight: 600;
}
.cart-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 50%;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-count.has-items {
    background: #ef4444;
}
.cart-count.pop {
    transform: scale(1.5);
    background: #ef4444;
}
.app-container {
    display: flex;
    margin-top: calc(var(--header-height) + var(--top-bar-height));
}
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: calc(var(--header-height) + var(--top-bar-height));
    left: 0;
    z-index: 900;
    transition: var(--transition);
}
.side-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.side-nav ul {
    list-style: none;
    padding: 20px 0;
}
#nav-list {
    flex: none;
}
@media (min-width: 901px) {
    #nav-list {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        height: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 20px !important;
    }
    #nav-sell {
        margin-top: auto !important;
        border-top: 1px solid var(--border) !important;
    }
}
.nav-item {
    padding: 16px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--grey);
    border-left: 3px solid transparent;
}
.side-nav ul .nav-item + .nav-item {
    border-top: 1px solid var(--border);
}
.nav-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
}
.nav-item i:first-child {
    width: 30px;
    font-size: 1.15rem;
}
.nav-item span {
    flex: 1;
    margin-left: 10px;
    font-weight: 600; 
}
.nav-item .arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}
.nav-item:hover, .nav-item.active, .nav-item.sidebar-active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}
.nav-item.active .arrow {
    transform: rotate(90deg);
}
.mega-menu-overlay {
    position: fixed;
    top: calc(var(--header-height) + var(--top-bar-height));
    left: var(--sidebar-width);
    width: 0;
    height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 850;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 30px 0 60px rgba(0,0,0,0.08);
    border-left: 1px solid rgba(0,0,0,0.05);
}
.mega-menu-overlay.open {
    width: 600px;
}
.mega-menu-content {
    padding: 60px 50px;
    width: 600px;
    position: relative;
    height: 100%;
    animation: contentFadeIn 0.8s ease forwards;
}
@keyframes contentFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.close-mega {
    position: absolute;
    top: 20px;
    right: 25px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: var(--grey);
    transition: var(--transition);
}
.close-mega:hover {
    background: #e2e8f0;
    color: var(--dark);
}
.mega-section {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    animation: fadeInMega 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInMega {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.mega-section.active {
    display: grid;
}
.mega-column h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: #000;
    font-weight: 900;
    position: relative;
    padding-bottom: 12px;
}
.mega-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.mega-column a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    position: relative;
    letter-spacing: -0.01em;
}
.mega-column a:hover {
    color: var(--primary);
    transform: translateX(12px);
    font-weight: 800;
}
.mega-column.mega-column-promo {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.promo-box h4 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.promo-box p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
}
.letter-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0 8px 0;
    border-bottom: 1px solid var(--border);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.letter-title:first-child {
    margin-top: 0;
}
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    width: calc(100% - var(--sidebar-width));
    transition: var(--transition);
}
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}
.hero-banner {
    background: var(--white);
    margin: 0;
    height: 500px;
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: none;
}
.hero-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide {
    width: 25%;
    height: 100%;
    flex-shrink: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--dark);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.slider-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    color: var(--primary);
}
.slider-arrow.prev {
    left: 20px;
}
.slider-arrow.next {
    right: 20px;
}
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background: var(--white);
    transform: scale(1.4);
}
@media (max-width: 900px) {
    .hero-banner {
        height: 300px;
    }
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}
.content-header {
    display: block;
    text-align: center;
    margin-bottom: 50px;
}
.content-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}
.content-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #000;
}
.filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--grey);
    font-size: 0.9rem;
}
.filter-bar select {
    padding: 10px 15px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-weight: 500;
}
.breadcrumb, .breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding: 20px 0 0 20px; 
    font-size: 0.85rem;
    color: var(--grey);
}
.breadcrumbs a, .breadcrumb a, .breadcrumb-item.go-home {
    color: #111827;
    text-decoration: none !important;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
}
.breadcrumbs a:hover, .breadcrumb a:hover, .breadcrumb-item.go-home:hover {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none !important;
}
.breadcrumbs i, .breadcrumb-separator {
    font-size: 0.7rem;
    color: var(--grey);
}
.breadcrumb-item:not(a):not(.go-home), .breadcrumbs span:not(a) {
    cursor: default;
    font-weight: 400;
    color: #111827;
}
.breadcrumbs span:last-child, .breadcrumb span:last-child, .breadcrumb-item.active {
    color: var(--grey) !important;
    font-weight: 700 !important;
}
.category-header {
    margin-bottom: 40px;
}
.category-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}
.category-header p {
    color: #1f2937;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
}
.grades-section {
    margin-bottom: 50px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.grades-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111827;
}
.grades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 400px;
}
.grade-card {
    position: relative;
    text-align: center;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: var(--transition);
    background: transparent;
}
.grade-card:hover {
    box-shadow: none;
    transform: none;
}
.grade-badge {
    display: none;
}
.grade-badge.grade-a {
    background: #22c55e;
}
.grade-badge.grade-b {
    background: #84cc16;
}
.grade-badge.grade-c {
    background: #eab308;
}
.grade-badge.grade-d {
    background: #f97316;
}
.grade-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
}
.grade-card h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 3px 0 2px 0;
    color: #111827;
    min-height: auto;
    display: block;
}
.grade-card p {
    font-size: 0.65rem;
    color: #6b7280;
    line-height: 1.2;
}
.grades-inline-text .grades-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: none;
}
.grades-inline-text + .grades-inline-text {
    margin-top: -72px;
    border-bottom: none;
    padding-bottom: 0;
}
.grades-inline-text h2 {
    font-size: 1.1rem;
    font-weight: 800;
}
.grades-inline-text .grade-card {
    display: grid;
    grid-template-columns: 65px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
    min-height: 65px;
    align-items: start;
    text-align: left;
}
.grades-inline-text .grade-card img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    grid-column: 1;
    grid-row: 1 / span 3;
}
.grades-inline-text .grade-card h3,
.grades-inline-text .grade-card h4,
.grades-inline-text .grade-card p {
    grid-column: 2;
}
.grades-inline-text .grade-card h3,
.grades-inline-text .grade-card h4 {
    grid-row: 1;
    margin: 0 0 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}
.grades-inline-text .grade-card p {
    grid-row: 2;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
}
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.filter-count {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.product-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 10px;
    color: inherit;
    text-decoration: none;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}
.product-image {
    height: 280px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px; 
    transition: var(--transition);
    position: relative;
    border-radius: 0;
}
.clearance-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    pointer-events: none;
}
.product-image .grade-b-thumbnail {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img:not(.grade-b-thumbnail) {
    transform: scale(1.1);
}
.product-info {
    padding: 12px 5px 5px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.product-info h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5; 
}
.price {
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    margin-top: auto;
}
.monthly-payment {
    margin-top: -2px;
    font-size: 0.85rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.monthly-payment strong {
    color: #111827;
    font-weight: 800;
}
.monthly-logo {
    height: 13px;
    width: auto;
    display: inline-block;
}
.price .currency {
    font-weight: 400;
    margin-left: 0.35em;
}
#gowishBlueButton {
    width: auto !important;
    min-width: max-content;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start !important;
    white-space: nowrap;
    line-height: 1;
    font-size: 8px !important;
    padding: 6px 22px 6px 44px !important;
    background-position: 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
}
.add-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: none;
    background: #000;
    color: #fff;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: none; 
}
.detail-add-btn {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
}
#mobile-menu-toggle {
    display: none;
    margin-right: 15px;
    z-index: 1200;
}
#mobile-menu-toggle i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}
#mobile-menu-toggle.active i {
    transform: rotate(90deg);
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 850;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--grey);
}
@media (max-width: 1200px) {
    .mega-menu-overlay.open {
        width: 500px;
    }
    .mega-menu-content {
        width: 500px;
    }
    .mega-section {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .top-info-bar {
        gap: 15px;
        padding: 0 10px;
    }
    .top-header {
        padding: 0 12px;
    }
    .header-left {
        margin-right: 0;
    }
    #mobile-menu-toggle {
        margin-right: 0;
    }
    #mobile-menu-toggle i {
        font-size: 1.65rem;
    }
    #logo-home,
    #logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }
    .site-logo {
        height: 62px;
    }
    .header-actions {
        margin-left: auto;
        gap: 0;
    }
    .login-btn i,
    .cart-icon,
    .cart-icon i {
        font-size: 1.45rem;
    }
    .login-btn svg,
    .cart-icon svg {
        width: 24px;
        height: 24px;
    }
    .login-btn,
    .cart-icon {
        padding: 10px;
    }
    .login-btn span,
    .basket-text {
        font-size: 0.95rem;
        font-weight: 600;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        max-width: 85vw; 
        height: 100vh !important; 
        top: 0 !important; 
        padding-top: 60px !important; 
        z-index: 1350 !important; 
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 0;
        width: 100%;
    }
    .content-wrapper {
        padding: 30px 20px;
    }
    #mobile-menu-toggle {
        display: block;
    }
    .sidebar-close {
        display: block !important;
        z-index: 1360 !important;
    }
    .mega-menu-overlay {
        left: 0;
        top: calc(var(--header-height) + var(--top-bar-height));
        width: 100%;
        height: 0;
        transition: height 0.4s ease;
        border-left: none;
    }
    .mega-menu-overlay.open {
        width: 100%;
        height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
    }
    .sidebar .nav-item {
        flex-wrap: wrap;
    }
    .nav-item .mega-section {
        display: none;
        flex-basis: 100%;
        padding: 20px 0 10px 40px;
        grid-template-columns: 1fr;
        gap: 20px;
        background: #fdfdfd;
        border-top: 1px solid #f3f4f6;
        animation: slideDownMobile 0.3s ease-out;
    }
    .nav-item.mobile-expanded .mega-section {
        display: grid;
    }
    .nav-item.mobile-expanded .arrow {
        transform: rotate(90deg);
    }
    .nav-item.mobile-expanded {
        background: #f9fafb;
        padding-bottom: 0;
    }
    @keyframes slideDownMobile {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .mega-menu-content {
        width: 100%;
        padding: 40px 20px;
    }
}
@media (max-width: 600px) {
    .header-actions .catalog-btn span {
        display: none;
    }
    .content-header {
        margin-bottom: 40px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}
.footer-divider {
    height: 32px;
    background: #000000;
    border-top: 3px solid #C10303;
    border-bottom: 3px solid #C10303;
    width: 100%;
    margin-top: 80px;
}
.main-footer {
    background: #f9fafb;
    color: #111827;
    padding: 80px 0 0 0;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}
.footer-contact-group {
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.footer-contact-group:last-child {
    margin-bottom: 0;
}
.footer-hours-accordion {
    margin: 4px 0 10px;
}
.footer-hours-accordion summary {
    cursor: pointer;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.footer-hours-accordion p {
    margin-bottom: 4px;
}
.footer-section h3 {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}
.footer-section .footer-sub-heading {
    margin-top: 10px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
}
.footer-section .footer-sub-heading:first-of-type {
    margin-top: 0;
}
.warehouse-info {
    font-size: 0.85rem;
    color: #9ca3af !important;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    align-items: center;
}
.warehouse-info i {
    font-size: 1rem;
    margin-right: 8px;
    color: #000000;
}
.warehouse-obs-accordion {
    margin-top: 8px;
}
.warehouse-obs-accordion summary {
    cursor: pointer;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.warehouse-obs-accordion .obs-text {
    color: #dc2626;
}
.warehouse-obs-accordion .warehouse-info {
    display: block;
    margin: 6px 0;
}
.footer-section p {
    color: #1f2937; 
    margin-bottom: 6px; 
    font-size: 1rem;
    line-height: 1.4;
}
.footer-section p i {
    margin-right: 8px;
    color: #000000;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #000000;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: inline-block;
}
.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(12px);
    font-weight: 800;
}
.footer-section p {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.social-icon {
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
.social-icon .fa-facebook-f { color: #1877F2; }
.social-icon .fa-instagram { color: #E4405F; }
.social-icon .fa-youtube { color: #FF0000; }
.social-icon:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}
.partner-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}
.partner-logos-break {
    flex-basis: 100%;
    height: 0;
}
.partner-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}
.partner-logos a:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}
.partner-logos img {
    height: 46px;
    width: auto;
    object-fit: contain;
}
.partner-logos img.partner-logo-lower {
    margin-top: 18px;
    height: 76px;
}
.footer-bottom {
    text-align: center;
    background: #000000;
    padding: 30px 20px;
    color: #9ca3af;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 100px;
    border-top: 3px solid #C10303;
}
.footer-bottom a {
    color: #ffffff;
    font-weight: 700;
}
.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .partner-logos {
        justify-content: center;
    }
}
.back-link {
    background: none;
    border: none;
    color: var(--grey);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    transition: var(--transition);
    padding: 10px 0;
}
.back-link:hover {
    color: var(--primary);
    transform: translateX(-5px);
}
.page-article {
    max-width: 900px;
}
.page-article h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
}
.page-article p {
    font-size: 1.15rem;
    line-height: 1.8; 
    color: #1f2937; 
    margin-bottom: 30px;
}
.page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}
.page-card {
    padding: 0;
    transition: var(--transition);
}
.page-card:hover {
    transform: translateY(-5px);
}
.page-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}
.page-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.page-card h3 {
    margin-bottom: 15px;
}
.sell-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.sell-step {
    text-align: center;
}
.step-num {
    width: 50px;
    height: 50px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 20px;
}
.find-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}
.find-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.find-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    color: var(--dark);
}
.find-card h3 i {
    color: var(--primary);
}
.find-address {
    font-size: 1rem !important;
    margin-bottom: 5px !important;
    color: var(--dark) !important;
    font-weight: 600;
}
.info-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-group strong {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey);
}
.info-group ul {
    list-style: none;
}
.info-group ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
}
.info-group ul li span:first-child {
    color: var(--grey);
}
.info-group p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}
.map-placeholder {
    height: 400px;
    background: var(--light);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--grey);
    filter: grayscale(1);
    transition: var(--transition);
}
.map-placeholder:hover {
    filter: grayscale(0);
    border-color: var(--primary);
}
@media (max-width: 768px) {
    .find-grid {
        grid-template-columns: 1fr;
    }
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
    transform: translateX(-450px);
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.cart-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.cart-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--grey);
    transition: var(--transition);
}
.close-btn:hover {
    color: var(--dark);
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}
.empty-cart-msg {
    text-align: center;
    color: var(--grey);
    margin-top: 50px;
}
.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light);
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--light);
}
.cart-item-info {
    flex: 1;
}
.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}
.cart-item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}
.qty-control {
    background: var(--light);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition);
}
.qty-control:hover {
    background: var(--border);
}
.cart-footer {
    padding: 30px;
    background: var(--light);
    border-top: 1px solid var(--border);
}
.cart-summary {
    margin-bottom: 25px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--grey);
}
.summary-line.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
}
.checkout-btn {
    width: 100%;
    justify-content: center;
}
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    animation: fadeIn 0.5s ease;
}
.product-detail-image {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
}
.detail-badge {
    top: 30px;
    left: 30px;
    padding: 8px 16px;
    font-size: 0.8rem;
}
.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (min-width: 901px) {
    .fixed-product-image-page .product-detail-container {
        align-items: start;
        grid-template-columns: 500px minmax(0, 1fr);
        gap: 40px;
    }
    .fixed-product-image-page .product-detail-image {
        justify-self: start;
        width: 500px;
        height: 640px;
        min-height: 640px;
        box-sizing: border-box;
        padding: 40px;
        align-items: center;
        justify-content: center;
    }
    .fixed-product-image-page .product-detail-image img {
        display: block;
        width: 440px;
        height: 440px;
        max-width: 440px;
        max-height: 440px;
        object-fit: contain;
    }
    .fixed-product-image-page .product-description p {
        margin: 0 0 12px;
    }
    .fixed-product-image-page .product-description br {
        display: none;
    }
    .fixed-product-image-page .grades-section {
        margin: 12px 0 20px;
        padding: 16px 0;
        border-bottom: none;
    }
    .fixed-product-image-page .grades-inline-text .grades-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: none;
    }
    .fixed-product-image-page .grades-inline-text .grade-card {
        grid-template-columns: 72px 1fr;
        min-height: 72px;
        column-gap: 12px;
    }
    .fixed-product-image-page .grades-inline-text .grade-card img {
        max-width: 72px;
        max-height: 72px;
    }
    .fixed-product-image-page .grades-inline-text .grade-card h3,
    .fixed-product-image-page .grades-inline-text .grade-card h4 {
        margin: 0 0 6px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--dark);
    }
    .fixed-product-image-page .grades-inline-text .grade-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
}
.product-detail-info {
    display: flex;
    flex-direction: column;
}
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.stock-badge.in-stock {
    color: var(--success);
}
.stock-badge.out-of-stock {
    color: var(--error);
}
.product-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}
.detail-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}
.price-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}
.price-val {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: baseline;
    gap: 0.35em;
}
.price-suffix {
    font-size: 1rem;
    color: var(--grey);
    font-weight: 400;
    margin-left: 8px;
}
.quantity-selector {
    margin-top: 12px;
    margin-bottom: 30px;
}
.news-banner-section {
    margin-top: 48px;
    margin-bottom: 24px;
}
.news-banner-link {
    display: block;
    overflow: hidden;
}
.news-banner-image {
    width: 100%;
    height: 101px;
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.news-banner-link:hover .news-banner-image,
.news-banner-link:focus-visible .news-banner-image {
    transform: scale(1.02);
    filter: brightness(1.05);
}
@media (max-width: 768px) {
    .news-banner-link {
        display: block;
        overflow: hidden;
    }
    .news-banner-image {
        width: 100%;
        height: 88px;
        object-fit: cover;
        object-position: center center;
    }
}
.youtube-section {
    margin-top: 80px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .news-banner-section,
    .youtube-section,
    .main-footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 700px;
    }
}
.youtube-channel-header {
    margin-bottom: 25px;
}
.channel-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.channel-profile {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.channel-text-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.channel-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
    text-decoration: none;
}
.youtube-subscribe-btn {
    background: #ff0000;
    color: white;
    border: none;
    display: inline-block;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.youtube-subscribe-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}
.youtube-carousel-container {
    position: relative;
}
.youtube-carousel-viewport {
    overflow: hidden;
    width: 100%;
}
.youtube-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
}
.video-card {
    flex: 0 0 calc(33.333% - 13.333px); 
    min-width: calc(33.333% - 13.333px);
}
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #444;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: var(--transition);
}
.video-card:hover .thumbnail-wrapper {
    background: #555;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}
.overlay-icon {
    position: absolute;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.overlay-icon.top-right {
    top: 10px;
    right: 10px;
}
.overlay-icon.bottom-right {
    bottom: 10px;
    right: 10px;
}
.video-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.carousel-nav {
    position: absolute;
    top: 100px; 
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 10;
}
.carousel-nav.prev {
    left: -22px;
}
.carousel-nav.next {
    right: -22px;
}
.carousel-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
@media (max-width: 1024px) {
    .video-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}
@media (max-width: 640px) {
    .video-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .carousel-nav {
        width: 36px;
        height: 36px;
        top: 40%; 
    }
    .carousel-nav.prev {
        left: -18px;
    }
    .carousel-nav.next {
        right: -18px;
    }
}
.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}
.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    width: fit-content;
}
.qty-btn {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.qty-btn:hover {
    background: var(--light);
}
#qty-input {
    width: 60px;
    height: 45px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    appearance: textfield;
}
#qty-input::-webkit-outer-spin-button,
#qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.detail-add-btn {
    max-width: 300px;
    padding: 18px;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 60px;
    opacity: 1;
    transform: none;
}
.product-benefits {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}
.benefit-item:last-child {
    margin-bottom: 0;
}
.product-description h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.product-description p {
    color: var(--grey);
    line-height: 1.8;
}
.description-stroke-box {
    border: 1px solid var(--border);
    background: transparent;
    padding: 16px;
    margin-top: 12px;
    margin-left: 0;
}
.description-stroke-box p {
    margin: 0 0 10px;
}
.description-stroke-box p:last-child {
    margin-bottom: 0;
}
.description-stroke-box li {
    color: var(--grey);
}
.description-stroke-box li strong {
    color: inherit;
}
.tech-spec-list p {
    display: grid;
    grid-template-columns: 170px 1fr;
    column-gap: 12px;
    margin: 0 0 8px;
}
.tech-spec-list .spec-key {
    font-weight: 400;
    text-decoration: underline;
}
.tech-spec-list .spec-value {
    color: var(--grey);
}
.separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 80px 0 60px 0;
}
.related-products h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}
.related-products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #000;
}
@media (max-width: 1100px) {
    .product-detail-container {
        gap: 40px;
    }
    .product-detail-info h1 {
        font-size: 2rem;
    }
}
@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    .product-detail-image {
        min-height: 350px;
        padding: 40px;
    }
    .breadcrumb, .breadcrumbs {
        padding: 15px 0 0 0 !important;
    }
}
@media (max-width: 480px) {
    .product-detail-image {
        min-height: 250px !important;
        padding: 20px !important;
    }
    .product-detail-info h1 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    .price-val {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    .product-info h4,
    .video-title,
    .product-detail-info h1,
    .category-header h1,
    .tech-spec-list .spec-value {
        overflow-wrap: anywhere;
    }

    .youtube-carousel-container {
        padding: 0 42px;
    }

    .carousel-nav.prev {
        left: 6px;
    }

    .carousel-nav.next {
        right: 6px;
    }

    .tech-spec-list p {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .tech-spec-list .spec-key {
        text-decoration: none;
        font-weight: 700;
    }

    .detail-add-btn {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .youtube-carousel-container {
        padding: 0 38px;
    }
}
