/* TWS Premium Storefront v3 — Apple-inspired design system */
/* ======================================================== */
/* Covers: Homepage, Category pages, Product pages, ICEcat specs */

/* ================================================================
   1. GLOBAL / HOMEPAGE — Carousel, Categories, Product Cards
   ================================================================ */

/* ---- CAROUSEL SLIDES ---- */
.ox-carousel .ox-slide-item .subtitle {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 6px !important;
}
.ox-carousel .ox-slide-item .title.huge {
    font-size: clamp(36px, 5vw, 64px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
}
.ox-carousel .ox-slide-item .ox-carousel__content p {
    font-size: 18px;
    line-height: 1.5;
}
.ox-carousel .ox-carousel__button a {
    border-radius: 980px !important;
    padding: 14px 32px !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}
.ox-carousel .ox-carousel__button a:hover {
    transform: scale(1.02);
}

/* ---- SECTION HEADERS ---- */
.page-main h2, .hero-slider h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

/* ---- CATEGORY PAGE ---- */
.category-view .category-image { display: none !important; }
.category-view .category-cms { margin-bottom: 20px; }

/* ---- SHOP BY CATEGORY GRID ---- */
.ox-subcategories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0 10px;
}
.ox-subcategories .item {
    background: #f5f5f7;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: none;
    box-shadow: none;
    text-align: center;
    position: relative;
}
.ox-subcategories .item:hover {
    background: #e8e8ed;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.ox-subcategories .item .ox-cat__img-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 8px;
    background: transparent;
}
.ox-subcategories .item .ox-cat__img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.ox-subcategories .item:hover .ox-cat__img {
    filter: grayscale(0%);
    transform: scale(1.08);
}
.ox-subcategories .item .ox-cat__name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.01em;
    padding: 4px 12px 16px !important;
    margin: 0 !important;
    line-height: 1.3;
}
.ox-subcategories .item .ox-cat__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---- PRODUCT CARDS ---- */
.products-grid .product-item {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.15s ease;
    border: 1px solid #e5e5e5;
}
.products-grid .product-item:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.products-grid .product-item-info { padding: 16px; }
.products-grid .product-item-name a {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.products-grid .product-item-name a:hover {
    color: #0071e3;
    text-decoration: none;
}
.products-grid .price-box .price {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

/* ---- MISC GLOBAL ---- */
.page-title-wrapper .page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.015em;
}
.filter-options-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.breadcrumbs { font-size: 12px; color: #86868b; }
.breadcrumbs a { color: #0071e3; }
.action.tocart.primary {
    border-radius: 8px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.tws-banner > div {
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}
.tws-banner:hover > div {
    transform: scale(1.005);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ================================================================
   2. PRODUCT PAGE — Layout wrapper + sections
   ================================================================ */

.tws-product {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    color: #1d1d1f;
    line-height: 1.6;
    max-width: 900px;
}

/* ---- Sections ---- */
.tws-section {
    margin-bottom: 40px;
}
.tws-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* ---- Description text ---- */
.tws-desc {
    font-size: 16px;
    color: #424245;
    line-height: 1.75;
    max-width: 820px;
}
.tws-desc p {
    margin-bottom: 14px;
}

/* ---- Features grid ---- */
.tws-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.tws-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #f5f5f7;
    border-radius: 14px;
    transition: background 0.2s;
}
.tws-feat-item:hover {
    background: #eef0f3;
}
.tws-feat-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-size: 18px;
}
.tws-feat-text {
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.5;
}
.tws-feat-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

/* ================================================================
   3. PRODUCT PAGE — Spec groups (ICEcat + name-parsed)
   ================================================================ */

.tws-spec-group {
    background: #fafafa;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: border-color 0.2s;
}
.tws-spec-group:hover {
    border-color: rgba(0,113,227,0.12);
}
.tws-spec-group-title,
.tws-spec-group h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    padding: 0;
}
.tws-spec-table {
    width: 100%;
    border-collapse: collapse;
}
.tws-spec-table tr {
    border-bottom: 1px solid #ebebeb;
}
.tws-spec-table tr:last-child {
    border-bottom: none;
}
.tws-spec-table td {
    padding: 10px 12px;
    font-size: 14px;
    vertical-align: top;
    line-height: 1.5;
}
.tws-spec-table td:first-child {
    color: #6e6e73;
    width: 40%;
    font-weight: 500;
    padding-right: 20px;
}
.tws-spec-table td:first-child strong {
    font-weight: 500;
    color: #6e6e73;
}
.tws-spec-table td:last-child {
    color: #1d1d1f;
    font-weight: 400;
}
.tws-spec-table tr:hover td {
    background: rgba(0, 113, 227, 0.02);
}

/* ================================================================
   4. PRODUCT PAGE — ICEcat enriched description
   ================================================================ */

.tws-product-description {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    color: #1d1d1f;
    line-height: 1.6;
    max-width: 900px;
}
.tws-product-description h3 {
    font-size: 21px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.tws-product-description h3:first-child {
    margin-top: 0;
}
.tws-product-description h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Overview */
.tws-overview {
    margin-bottom: 32px;
}
.tws-overview p {
    font-size: 16px;
    color: #424245;
    line-height: 1.75;
    max-width: 820px;
}

/* Specifications container */
.tws-specifications {
    margin-bottom: 32px;
}

/* Highlights / Key Features */
.tws-highlights {
    margin-bottom: 32px;
}
.tws-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tws-highlights li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 15px;
    color: #1d1d1f;
    line-height: 1.55;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.tws-highlights li:last-child {
    border-bottom: none;
}
.tws-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0071e3;
}
.tws-highlights li strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* Ideal For */
.tws-ideal-for {
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 113, 227, 0.08);
}
.tws-ideal-for h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
}
.tws-ideal-for ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
.tws-ideal-for li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: #424245;
    line-height: 1.5;
    border-bottom: none;
}
.tws-ideal-for li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0071e3;
    font-weight: 700;
    font-size: 13px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    top: 0;
}

/* Product Meta */
.tws-product-meta {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    border-top: 3px solid #0071e3;
}
.tws-product-meta p {
    font-size: 13px;
    color: #6e6e73;
    margin: 6px 0;
    line-height: 1.5;
}
.tws-product-meta p strong {
    color: #1d1d1f;
    font-weight: 600;
}
.tws-support-note,
.tws-product-meta .tws-support-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    font-style: italic;
    color: #86868b;
    font-size: 13px;
}

/* ================================================================
   5. PRODUCT PAGE — Trust bar + Promos (page template)
   ================================================================ */

/* Trust bar */
.tws-trust {
    margin-bottom: 32px;
}
.tws-trust-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.tws-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #424245;
    font-weight: 500;
}
.tws-trust-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #f0f5ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Promo section */
.tws-promo {
    margin-top: 40px;
}
.tws-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.tws-promo-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.tws-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.tws-promo-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.tws-promo-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.tws-promo-desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.45;
    margin-bottom: 12px;
}
.tws-promo-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0071e3;
    text-decoration: none;
}
.tws-promo-btn:hover {
    text-decoration: underline;
}

/* Wide promo banner */
.tws-promo-wide {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tws-promo-wide-text {
    flex: 1;
}
.tws-promo-wide-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.tws-promo-wide-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.tws-promo-wide-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0071e3;
    color: #fff;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 24px;
}
.tws-promo-wide-btn:hover {
    background: #0077ed;
}

/* Mini promos / badges */
.tws-promo-bottom {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.tws-promo-mini {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f5f5f7;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
}
.tws-promo-mini-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.tws-promo-mini-label {
    line-height: 1.3;
}

/* ================================================================
   6. RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    /* Homepage */
    .ox-carousel .ox-slide-item .title.huge { font-size: 28px !important; }
    .ox-subcategories .item .ox-cat__img { width: 48px !important; height: 48px !important; }
    .ox-subcategories .item .ox-cat__name { font-size: 12px !important; padding: 2px 8px 12px !important; }
    .ox-subcategories .item .ox-cat__img-holder { padding: 14px 10px 4px; }

    /* Product features */
    .tws-feat-grid { grid-template-columns: 1fr; }
    
    /* Specs */
    .tws-spec-group { padding: 14px 16px; border-radius: 12px; }
    .tws-spec-table td:first-child { width: 45%; }
    
    /* Ideal For */
    .tws-ideal-for { padding: 18px 20px; }
    .tws-ideal-for ul { grid-template-columns: 1fr; gap: 8px; }
    
    /* Meta */
    .tws-product-meta { padding: 16px 18px; }
    
    /* Promos */
    .tws-promo-grid { grid-template-columns: 1fr; }
    .tws-promo-wide { flex-direction: column; text-align: center; padding: 24px 20px; }
    .tws-promo-wide-btn { margin: 16px 0 0; }
    .tws-promo-bottom { flex-direction: column; }
    
    /* Trust */
    .tws-trust-bar { flex-wrap: wrap; gap: 12px; }
    .tws-trust-item { flex: 1 1 45%; }
}

@media (max-width: 440px) {
    .tws-feat-item { padding: 14px 16px; }
    .tws-spec-table td { padding: 8px 8px; font-size: 13px; }
    .tws-trust-item { flex: 1 1 100%; }
}

@media (min-width: 769px) {
    .home-banner-sec img.mobile { display: none !important; }
}
