/*
Theme Name: Apple Devices Store
Theme URI: https://appledevices.co.za/
Author: Cool Side Computer Systems
Author URI: https://coolsidecomputersystems.co.za/
Description: Production-oriented WooCommerce theme for Apple Devices, a division of Cool Side Computer Systems. Includes resilient PHP templates, local product imagery, automatic page/category repair, and a storefront matching the approved dark concept.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Version: 4.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apple-devices-store
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready, dark
*/
:root{--ads-black:#010408;--ads-panel:#050d16;--ads-panel-2:#07111d;--ads-card:#091421;--ads-line:#1d3047;--ads-line-soft:#142439;--ads-blue:#078dff;--ads-blue-2:#0870df;--ads-cyan:#00b7ff;--ads-white:#f6f9fe;--ads-silver:#dfe7f0;--ads-muted:#91a2b8;--ads-success:#42d17c;--ads-radius:12px;--ads-shadow:0 18px 55px rgba(0,0,0,.42)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ads-black);color:var(--ads-silver);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.48}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none;transition:.18s ease}button,input,select,textarea{font:inherit}.ads-shell{width:min(calc(100% - 68px),1540px);margin-inline:auto}.ads-panel{background:linear-gradient(145deg,#06101b,#02070d);border:1px solid var(--ads-line);border-radius:var(--ads-radius)}
/* Header */
.ads-site-header{background:#010408;border-bottom:1px solid #132236;position:sticky;top:0;z-index:80}.ads-header-row{min-height:82px;display:grid;grid-template-columns:345px minmax(560px,1fr) 410px;align-items:center;gap:20px}.ads-brand-lockup{display:flex;align-items:center}.ads-header-logo{width:310px;height:66px;object-fit:contain;object-position:left center;mix-blend-mode:screen}.ads-primary-nav ul{display:flex;justify-content:center;align-items:center;gap:34px;list-style:none;margin:0;padding:0}.ads-primary-nav a{display:block;font-size:13px;font-weight:650;color:#eef3f9;padding:31px 0 26px;border-bottom:3px solid transparent}.ads-primary-nav a:hover,.ads-primary-nav .current-menu-item>a,.ads-primary-nav a[aria-current="page"]{color:#fff;border-bottom-color:var(--ads-blue)}.ads-header-tools{display:flex;justify-content:flex-end;align-items:center;gap:14px}.ads-product-search{width:260px;display:flex;background:#040a11;border:1px solid var(--ads-line);border-radius:7px;overflow:hidden}.ads-product-search input{width:100%;height:38px;background:transparent;border:0;color:#fff;padding:0 15px;font-size:12px}.ads-product-search button{width:42px;height:38px;background:transparent;border:0;padding:8px}.ads-product-search button img{width:20px;height:20px}.ads-tool-link{width:40px;height:40px;display:grid;place-items:center;border-left:1px solid #101c2a}.ads-tool-link img{width:25px;height:25px}.ads-cart-badge{position:relative}.ads-cart-count{position:absolute;top:-1px;right:-1px;min-width:17px;height:17px;padding:0 4px;border-radius:20px;display:grid;place-items:center;background:var(--ads-blue);color:#fff;font-size:10px;font-weight:800}.ads-mobile-toggle{display:none;background:transparent;border:1px solid var(--ads-line);color:#fff;border-radius:6px;padding:8px 10px}
/* Home */
.ads-home{padding:10px 0 22px}.ads-hero{position:relative;min-height:290px;overflow:hidden}.ads-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.ads-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,4,8,.98) 0%,rgba(1,4,8,.92) 31%,rgba(1,4,8,.12) 65%,rgba(1,4,8,.02) 100%)}.ads-hero-copy{position:relative;z-index:2;width:44%;padding:24px 28px 12px 62px}.ads-eyebrow{margin:0 0 8px;color:var(--ads-cyan);text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.04em}.ads-hero h1{margin:0 0 10px;color:#fff;font-size:38px;line-height:1.05;letter-spacing:-.035em}.ads-hero h1 span{display:block;color:var(--ads-blue)}.ads-hero-copy>p{max-width:420px;margin:0 0 17px;color:#a7b4c5;font-size:14px}.ads-buttons{display:flex;gap:14px}.ads-button{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#1398ff,#075fc9);border:1px solid #1f9fff;border-radius:5px;color:#fff;font-weight:750;font-size:12px;padding:10px 24px;box-shadow:0 4px 18px rgba(0,100,230,.25)}.ads-button-outline{background:#040a11;border-color:#334961;box-shadow:none}.ads-hero-trust{position:relative;z-index:2;display:flex;gap:28px;padding:13px 0 16px 62px}.ads-mini-trust{display:grid;grid-template-columns:27px auto;column-gap:8px;align-items:center}.ads-mini-trust img{grid-row:1/3;width:24px;height:24px}.ads-mini-trust strong{font-size:11px;color:#73bdff}.ads-mini-trust small{font-size:9px;color:#8092a8}
.ads-category-strip{margin-top:8px;display:grid;grid-template-columns:repeat(6,1fr);overflow:hidden}.ads-category-link{min-height:70px;display:grid;grid-template-columns:72px 1fr;align-items:center;padding:8px 20px;border-right:1px solid var(--ads-line-soft)}.ads-category-link:last-child{border-right:0}.ads-category-link:hover{background:linear-gradient(145deg,#07192d,#05101b);box-shadow:inset 0 0 0 1px #0c86ff}.ads-category-link img{width:56px;height:54px;object-fit:contain}.ads-category-link strong{display:block;color:#fff;font-size:13px}.ads-category-link small{display:block;color:#8698ad;font-size:10px;margin-top:4px}
.ads-merch-grid{margin-top:8px;display:grid;grid-template-columns:1.12fr .86fr .52fr .52fr;gap:8px}.ads-merch-panel{padding:12px;min-width:0}.ads-panel-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}.ads-panel-title h2{margin:0;color:var(--ads-cyan);font-size:11px;letter-spacing:.03em;text-transform:uppercase}.ads-panel-title a{color:#36aaff;font-size:10px}.ads-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ads-product-card{padding:7px 7px 8px;border:1px solid var(--ads-line);border-radius:8px;background:linear-gradient(145deg,#0a1624,#06101a);min-width:0;position:relative}.ads-product-card:hover{transform:translateY(-2px);border-color:#2477bd}.ads-product-card img{width:100%;aspect-ratio:1.05/1;object-fit:cover;border-radius:6px;margin:0 0 7px;background:#02070c}.ads-product-card h3{margin:0;color:#fff;font-size:10px;line-height:1.25;min-height:2.5em}.ads-product-card .ads-price{display:block;color:#1ea5ff;font-size:10px;font-weight:750;margin:3px 0}.ads-product-card .ads-add{display:inline-block;padding:5px 10px;background:linear-gradient(180deg,#188fff,#0757bd);border-radius:4px;color:#fff;font-size:9px;line-height:1.1}.ads-product-card .ads-add:hover{filter:brightness(1.12)}.ads-promo{padding:13px;display:flex;flex-direction:column;min-height:206px;overflow:hidden;background-repeat:no-repeat;background-position:right bottom;background-size:70% auto}.ads-promo h2{margin:0;color:var(--ads-cyan);font-size:11px;text-transform:uppercase}.ads-promo p{width:47%;margin:13px 0 4px;color:#aab7c8;font-size:11px;line-height:1.55;position:relative;z-index:2}.ads-promo .ads-button{margin-top:auto;align-self:flex-start;padding:7px 12px;font-size:9px}.ads-promo-business{background-image:linear-gradient(90deg,#06101b 0%,rgba(6,16,27,.85) 36%,rgba(6,16,27,.06) 70%),var(--ads-business-image)}.ads-promo-education{background-image:linear-gradient(90deg,#06101b 0%,rgba(6,16,27,.85) 36%,rgba(6,16,27,.06) 70%),var(--ads-education-image)}
.ads-benefit-strip{margin-top:8px;display:grid;grid-template-columns:repeat(6,1fr);overflow:hidden;padding:7px 0}.ads-benefit{display:grid;grid-template-columns:40px 1fr;align-items:center;padding:2px 20px;border-right:1px solid var(--ads-line-soft)}.ads-benefit:last-child{border:0}.ads-benefit img{width:29px;height:29px}.ads-benefit strong{display:block;color:#e7eef7;font-size:10px}.ads-benefit small{display:block;color:#8496ab;font-size:9px;margin-top:2px}
/* Footer */
.ads-site-footer{background:#010408}.ads-footer{margin-bottom:10px;padding:12px 22px 0}.ads-footer-grid{display:grid;grid-template-columns:1.2fr .55fr .65fr .72fr .72fr 1.05fr .83fr;gap:24px}.ads-footer-brand{display:flex;gap:10px;align-items:flex-start}.ads-footer-brand img{width:40px;height:40px}.ads-footer-brand strong{font-size:18px;color:#edf4fc}.ads-footer-brand small{display:block;color:#8395aa;font-size:9px}.ads-footer-intro{color:#8ea0b5;font-size:9px;margin-top:12px;max-width:255px}.ads-footer h3{margin:0 0 8px;color:var(--ads-cyan);font-size:9px;text-transform:uppercase}.ads-footer ul{list-style:none;margin:0;padding:0}.ads-footer li,.ads-footer p,.ads-footer a{color:#9aabba;font-size:9px;line-height:1.65}.ads-footer a:hover{color:#fff}.ads-newsletter-row{display:flex}.ads-newsletter-row input{width:100%;min-width:0;background:#06101a;border:1px solid var(--ads-line);border-radius:4px 0 0 4px;color:#fff;padding:8px;font-size:9px}.ads-newsletter-row button{border:1px solid #1e8fff;background:#087de6;color:#fff;border-radius:0 4px 4px 0;font-size:9px;padding:0 12px}.ads-payments{display:flex;gap:5px;flex-wrap:wrap}.ads-payments span{padding:3px 7px;border-radius:3px;background:#edf4fb;color:#08203c;font-size:9px;font-weight:900}.ads-copyright{text-align:center;color:#6f8198;font-size:8px;margin:10px 0 0;padding:8px 0 4px;border-top:1px solid #101e2e}
/* Inner pages and WooCommerce */
.ads-content-shell{width:min(calc(100% - 48px),1280px);margin:42px auto;min-height:52vh}.ads-content-panel{padding:28px}.ads-page-title{color:#fff;font-size:clamp(2rem,4vw,3.4rem);margin:0 0 24px}.ads-entry-content{color:#afbdcc}.ads-entry-content a{color:#3aaaff}.ads-entry-content pre,.ads-entry-content code{white-space:pre-wrap;overflow-wrap:anywhere}.woocommerce{color:var(--ads-silver)}.woocommerce .woocommerce-breadcrumb{color:var(--ads-muted)}.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product{width:auto!important;margin:0!important;padding:13px;border:1px solid var(--ads-line);border-radius:12px;background:linear-gradient(145deg,#0a1624,#06101a)}.woocommerce ul.products li.product a img{border-radius:8px;aspect-ratio:1/1;object-fit:cover;background:#02070c}.woocommerce ul.products li.product .woocommerce-loop-product__title{color:#fff;font-size:14px}.woocommerce ul.products li.product .price{color:#1fa5ff;font-weight:800}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:#087ee5;color:#fff;border-radius:5px}.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:50px}.single-product div.product .woocommerce-product-gallery,.single-product div.product .summary{float:none!important;width:auto!important}.single-product .woocommerce-product-gallery__wrapper{border:1px solid var(--ads-line);border-radius:15px;overflow:hidden}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{background:#06101a;border:1px solid var(--ads-line);border-radius:6px;color:#fff;padding:12px}.woocommerce table.shop_table{background:#06101a;border-color:var(--ads-line)}.wc-block-components-button{background:#087ee5!important;color:#fff!important;border-radius:5px!important}.ads-not-found{text-align:center;padding:80px 24px}.ads-not-found h1{font-size:clamp(4rem,12vw,10rem);margin:0;color:#078dff}.ads-not-found h2{color:#fff}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;background:#fff;color:#000;padding:12px;z-index:99999;clip:auto}
@media(max-width:1320px){.ads-header-row{grid-template-columns:300px 1fr 300px}.ads-primary-nav ul{gap:20px}.ads-product-search{width:190px}.ads-merch-grid{grid-template-columns:1fr 1fr}.ads-merch-grid>.ads-promo{min-height:230px}.ads-footer-grid{grid-template-columns:1.2fr repeat(3,1fr)}.ads-footer-grid>*:nth-child(n+5){margin-top:10px}.ads-category-strip{grid-template-columns:repeat(3,1fr)}.ads-category-link:nth-child(3){border-right:0}}
@media(max-width:980px){.ads-shell{width:min(calc(100% - 28px),1540px)}.ads-header-row{grid-template-columns:1fr auto;min-height:76px}.ads-mobile-toggle{display:block}.ads-primary-nav{display:none;grid-column:1/-1;order:3;border-top:1px solid var(--ads-line-soft)}.ads-primary-nav.is-open{display:block}.ads-primary-nav ul{justify-content:center;flex-wrap:wrap;gap:22px}.ads-primary-nav a{padding:12px 0}.ads-header-tools .ads-product-search{display:none}.ads-hero{min-height:360px}.ads-hero-copy{width:60%;padding-left:36px}.ads-hero-trust{padding-left:36px;flex-wrap:wrap}.ads-benefit-strip{grid-template-columns:repeat(3,1fr)}.ads-benefit:nth-child(3){border-right:0}.ads-footer-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.ads-header-logo{width:280px;height:58px}.ads-header-tools .ads-tool-link:first-of-type{display:none}.ads-hero{min-height:500px}.ads-hero-bg{object-position:63% bottom}.ads-hero:after{background:linear-gradient(180deg,rgba(1,4,8,.98) 0%,rgba(1,4,8,.88) 50%,rgba(1,4,8,.12) 100%)}.ads-hero-copy{width:100%;padding:30px 24px}.ads-hero h1{font-size:36px}.ads-hero-trust{position:absolute;left:0;bottom:6px;padding:12px 18px;gap:15px}.ads-mini-trust:nth-child(n+3){display:none}.ads-category-strip{grid-template-columns:repeat(2,1fr)}.ads-category-link:nth-child(odd){border-right:1px solid var(--ads-line-soft)}.ads-category-link:nth-child(even){border-right:0}.ads-merch-grid{grid-template-columns:1fr}.ads-product-grid{grid-template-columns:repeat(2,1fr)}.ads-benefit-strip{grid-template-columns:repeat(2,1fr)}.ads-benefit:nth-child(odd){border-right:1px solid var(--ads-line-soft)}.ads-benefit:nth-child(even){border-right:0}.ads-footer-grid{grid-template-columns:repeat(2,1fr)}.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}.single-product div.product{grid-template-columns:1fr}}
@media(max-width:460px){.ads-shell{width:min(calc(100% - 18px),1540px)}.ads-header-logo{width:220px;height:52px}.ads-tool-link{width:34px}.ads-hero h1{font-size:31px}.ads-buttons{flex-direction:column;align-items:flex-start}.ads-hero-trust{display:none}.ads-category-strip,.ads-benefit-strip,.ads-footer-grid{grid-template-columns:1fr}.ads-category-link,.ads-benefit{border-right:0!important;border-bottom:1px solid var(--ads-line-soft)}.ads-product-grid,.woocommerce ul.products{grid-template-columns:1fr 1fr}.ads-promo p{width:55%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
