/* ==========================================================================
   Technotech — Site-Wide Styles
   Announcement bar, custom footer, WhatsApp button, Storefront overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */

.tt-announce {
    background: #d35400;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 10px 0;
    text-align: center;
}

.tt-announce-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.tt-announce-inner span {
    white-space: nowrap;
}

.tt-announce-inner i {
    margin-right: 7px;
}

@media (max-width: 600px) {
    .tt-announce {
        font-size: 12px;
        padding: 8px 0;
    }
    .tt-announce-inner {
        gap: 10px 20px;
    }
    .tt-announce-inner span:nth-child(2) {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   B. SITE-WIDE NAVIGATION + MEGA MENU
   -------------------------------------------------------------------------- */

/* Hide Storefront's default header chrome */
.site-header .site-branding,
.site-header .site-search,
.site-header .site-header-cart,
.site-header .storefront-primary-navigation,
.site-header .secondary-navigation {
    display: none !important;
}

.site-header {
    background: #fff !important;
    border-bottom: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.tt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tt-nav {
    padding: 14px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.tt-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tt-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a202c;
    text-decoration: none;
}

.tt-logo .t { color: #d35400; }

.tt-logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* Search bar */
.tt-nav-search {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
    flex: 0 1 320px;
    margin: 0 24px;
}

.tt-nav-search:focus-within {
    border-color: #d35400;
    background: #fff;
}

.tt-nav-search input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 14px;
    color: #1a202c;
    outline: none;
    min-width: 0;
}

.tt-nav-search input[type="search"]::placeholder {
    color: #9ca3af;
}

.tt-nav-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.tt-nav-search button {
    background: none;
    border: none;
    padding: 9px 14px;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.15s;
}

.tt-nav-search button:hover {
    color: #d35400;
}

/* Hamburger button — hidden on desktop */
.tt-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: #374151;
    cursor: pointer;
    padding: 4px 8px;
}

.tt-hamburger.open i::before {
    content: "\f00d"; /* fa-times */
}

@media (max-width: 767px) {
    .tt-hamburger {
        display: flex;
    }

    .tt-nav-inner {
        flex-wrap: wrap;
        position: relative;
    }

    .tt-nav-search {
        flex: 1 1 100%;
        margin: 10px 0 0;
        order: 10;
    }

    /* Mobile nav drawer — hidden by default */
    .tt-nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: -24px;
        right: -24px;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        z-index: 999;
        padding: 12px 0;
    }

    .tt-nav-links.open {
        display: flex;
    }

    .tt-nav-links > a,
    .tt-nav-links > .tt-mega-trigger,
    .tt-nav-links > .cart-contents {
        padding: 12px 24px;
        font-size: 15px;
        border-bottom: 1px solid #f3f4f6;
    }

    .tt-nav-links > a:last-child {
        border-bottom: none;
    }

    /* Mega menu in mobile — inline, not absolute */
    .tt-mega-trigger {
        position: static;
    }

    .tt-mega-trigger::after {
        display: none;
    }

    .tt-mega-menu {
        display: none !important;
        position: static !important;
        width: auto !important;
        left: auto !important;
        margin-top: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 8px 24px 16px !important;
        background: #f9fafb !important;
    }

    .tt-mega-menu.open {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Override hover behavior on mobile — tap only */
    .tt-mega-trigger:hover .tt-mega-menu:not(.open) {
        display: none !important;
    }

    .tt-mega-menu.open {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .tt-mega-col h5 {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .tt-mega-col a {
        font-size: 13px;
        padding: 3px 0;
    }
}

@media (max-width: 400px) {
    .tt-mega-menu.open {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .tt-nav-links {
        display: flex;
        gap: 28px;
        align-items: center;
    }
}

.tt-nav-links > a {
    font-size: 15px;
    color: #374151;
    transition: color 0.15s;
    font-weight: 500;
    text-decoration: none;
}

.tt-nav-links > a:hover { color: #d35400; }

.tt-nav-links .cart-contents {
    text-decoration: none;
    color: #374151;
}

.tt-nav-links .cart-contents:hover { color: #d35400; }

.tt-nav-links .cart-badge {
    background: #d35400;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Mega Menu */
.tt-mega-trigger {
    position: relative;
}

.tt-mega-btn {
    font-size: 15px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s;
    text-decoration: none;
}

.tt-mega-btn:hover { color: #d35400; }
.tt-mega-btn i { margin-right: 6px; font-size: 14px; }

.tt-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -200px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 32px 36px;
    width: 820px;
    margin-top: 10px;
}

.tt-mega-trigger:hover .tt-mega-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tt-mega-trigger::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -50px;
    right: -50px;
    height: 14px;
}

.tt-mega-col h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a202c;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d35400;
}

.tt-mega-col a {
    display: block;
    font-size: 14px;
    color: #374151;
    padding: 5px 0;
    transition: color 0.15s;
    font-weight: 400;
    text-decoration: none;
}

.tt-mega-col a:hover { color: #d35400; }

@media (max-width: 991px) {
    .tt-mega-menu {
        width: 600px;
        left: -150px;
    }
    .tt-mega-trigger:hover .tt-mega-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .tt-nav-links { gap: 16px; }
    .tt-nav-links > a { font-size: 13px; }
    .tt-mega-menu {
        position: fixed;
        left: 0 !important;
        right: 0;
        width: auto;
        border-radius: 0;
        margin-top: 0;
    }
    .tt-mega-trigger:hover .tt-mega-menu {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   C. FOOTER — full-width breakout from Storefront's .col-full container
   -------------------------------------------------------------------------- */

.tt-footer {
    /* Break out of Storefront's .col-full max-width container */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    /* Styling — light background, dark text */
    background: #f5f6f8;
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    border-top: 1px solid #e2e5ea;
}

.tt-footer-inner {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
    gap: 48px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 32px 48px;
}

/* Column headings */
.tt-footer-col h4 {
    color: #1a202c;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 20px;
}

/* Link lists */
.tt-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tt-footer-col ul li {
    margin-bottom: 12px;
}

.tt-footer-col ul li a {
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.tt-footer-col ul li a:hover,
.tt-footer-col ul li a:focus {
    color: #d35400;
}

/* Brand column */
.tt-footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.tt-footer-logo .tt-t {
    color: #d35400;
}

.tt-footer-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.tt-footer-desc {
    color: #4a5568;
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 14px;
    line-height: 1.7;
}

.tt-footer-india {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    margin: 0;
}

/* Contact list icons */
.tt-footer-contact li {
    display: flex;
    align-items: center;
    gap: 0;
}

.tt-footer-contact li i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #d35400;
    font-size: 15px;
}

.tt-footer-contact li a {
    font-weight: 500;
    color: #2d3748;
}

/* Social icons */
.tt-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.tt-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e5ea;
    color: #4a5568;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tt-footer-social a:hover,
.tt-footer-social a:focus {
    background: #d35400;
    color: #fff;
}

/* Newsletter in footer */
.tt-newsletter {
    margin-top: 24px;
}

.tt-newsletter p {
    font-size: 14px;
    color: #2d3748;
    margin: 0 0 10px;
    font-weight: 600;
}

.tt-newsletter-row {
    display: flex;
    gap: 0;
}

.tt-newsletter-row input[type="email"] {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #1a202c;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
}

.tt-newsletter-row input[type="email"]:focus {
    border-color: #d35400;
}

.tt-newsletter-row input[type="email"]::placeholder {
    color: #9ca3af;
}

.tt-newsletter-row button {
    background: #d35400;
    border: 1px solid #d35400;
    border-radius: 0 6px 6px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.tt-newsletter-row button:hover,
.tt-newsletter-row button:focus {
    background: #b94700;
}

.tt-newsletter-msg {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

/* Bottom bar */
.tt-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 32px;
    border-top: 1px solid #d1d5db;
    font-size: 13px;
    color: #718096;
}

.tt-payment-methods {
    letter-spacing: 0.03em;
}

/* Footer responsive — tablet */
@media (max-width: 960px) {
    .tt-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

/* Footer responsive — mobile */
@media (max-width: 600px) {
    .tt-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 24px 36px;
    }
    .tt-footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 16px 24px;
    }
}

/* --------------------------------------------------------------------------
   C. WHATSAPP FLOATING BUTTON
   -------------------------------------------------------------------------- */

.tt-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tt-whatsapp:hover,
.tt-whatsapp:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Move above Storefront handheld footer bar on mobile */
@media (max-width: 991px) {
    .tt-whatsapp {
        bottom: 80px;
    }
}

/* --------------------------------------------------------------------------
   D. STOREFRONT OVERRIDES
   -------------------------------------------------------------------------- */

/* Hide default Storefront footer credit */
.site-info,
.site-footer .site-info {
    display: none !important;
}
