/* ============================================
   TWYFORD TILES KE - MAIN STYLES
   Warm Orange/Brown Color Scheme
============================================ */

:root {
    --primary: #E67E22;
    --primary-dark: #D35400;
    --primary-light: #FDF2E9;
    --secondary: #2C3E50;
    --accent: #F39C12;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --gray-bg: #FAF9F8;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   FLOATING ACTION BUTTONS
============================================ */

.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    position: relative;
}

.float-wa {
    background: #25D366;
    color: white;
}

.float-call {
    background: var(--primary);
    color: white;
}

.float-btn i {
    font-size: 22px;
}

.float-btn .btn-label {
    font-size: 14px;
}

.float-btn .tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-right: 8px;
}

.float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.float-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   HEADER & NAVIGATION
============================================ */

header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--text-dark);
}

.logo-text h1 span {
    color: var(--primary);
}

.logo-text p {
    font-size: 11px;
    color: var(--text-light);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

nav ul li a:hover {
    color: var(--primary);
}

#cart-icon {
    color: var(--primary);
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: left 0.3s;
    padding: 60px 20px 20px;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav .close-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    display: block;
}

/* ============================================
   HERO SECTION
============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFF8F0 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero .accent {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   FEATURES SECTION
============================================ */

.features {
    padding: 50px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   PRODUCT SECTIONS
============================================ */

.product-section {
    padding: 60px 0;
}

.alt-bg {
    background: var(--gray-bg);
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: 32px;
    color: var(--text-dark);
}

.section-head h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.section-head p {
    color: var(--text-light);
    margin-top: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ============================================
   PRODUCT CARD & SLIDESHOW
============================================ */

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

/* Only add grab cursor on touch devices for multi-image products */
@media (hover: none) and (pointer: coarse) {
    .slideshow-container[data-has-slideshow="true"] {
        cursor: grab;
    }
    .slideshow-container[data-has-slideshow="true"]:active {
        cursor: grabbing;
    }
}

/* Slide images */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    animation: fadeIn 0.5s ease;
}

.slide-image.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Dots Container */
.dots-container {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 10px;
    height: 10px;
}

/* Product Info */
.product-info {
    padding: 18px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-category {
    color: var(--primary);
    font-size: 12px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
    margin-left: 8px;
    font-weight: normal;
}

.product-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.btn-add, .btn-call {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

.btn-add {
    background: var(--primary);
    color: white;
}

.btn-add:hover {
    background: var(--primary-dark);
}

.btn-call {
    background: var(--secondary);
    color: white;
}

.btn-call:hover {
    background: #1a252f;
}

/* ============================================
   CART SIDEBAR
============================================ */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 i {
    color: var(--primary);
}

.close-cart {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    font-size: 20px;
    margin-bottom: 15px;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: #128C7E;
    transform: scale(1.02);
}

.btn-clear-cart {
    width: 100%;
    padding: 10px;
    background: #f0f0f0;
    color: var(--text-dark);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-clear-cart:hover {
    background: #e0e0e0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* ============================================
   ABOUT SECTION
============================================ */

.about-section {
    padding: 70px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
}

.about-text ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text ul li i {
    color: var(--primary);
}

.about-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.stat {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 42px;
    font-weight: bold;
    color: var(--primary);
}

/* ============================================
   CONTACT SECTION
============================================ */

.contact-section {
    padding: 70px 0;
}

.contact-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
}

.contact-section > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-details i {
    color: var(--primary);
    width: 25px;
}

.contact-details a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary);
}

/* ============================================
   FOOTER
============================================ */

footer {
    background: var(--secondary);
    color: white;
    padding: 40px 0 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================
   LOADER & UTILITIES
============================================ */

.loader {
    text-align: center;
    padding: 50px;
    color: var(--text-light);
}

.loader i {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .slideshow-container {
        height: 180px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-description {
        font-size: 11px;
    }
    
    .product-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-add, .btn-call {
        padding: 8px;
        font-size: 11px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .float-btn .btn-label {
        display: none;
    }
    
    .float-btn {
        padding: 12px;
        border-radius: 50%;
    }
    
    .float-btn .tooltip {
        display: none;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-contact {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .section-head h2 {
        font-size: 24px;
    }
    
    .about-text h2 {
        font-size: 24px;
    }
    
    .contact-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 10px;
    }
    
    .slideshow-container {
        height: 150px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 11px;
    }
    
    .btn-add, .btn-call {
        padding: 6px;
        font-size: 9px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature {
        padding: 15px;
    }
    
    .feature i {
        font-size: 32px;
    }
    
    .stat {
        padding: 20px;
    }
    
    .stat-num {
        font-size: 28px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
    
    .dot.active {
        width: 8px;
        height: 8px;
    }
}

/* Animations */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(100%); }
    10% { opacity: 1; transform: translateX(0); }
    90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}