/*
Theme Name: Pandiyaas Crackers
Theme URI:
Author: Custom
Description: A portable WooCommerce theme with responsive product, cart and navigation styling.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: pandiyaascrackers
*/
/*
Theme Name: WooCommerce Styled Blank Theme
Author: Senthil
Description: Adds Shoppire-like styles to WooCommerce pages on a blank theme
Version: 1.0
*/

/* Base Styles */
.pdcart-drawer {
    display: none;
}
.kb-splide .splide__track {
    background: black !important;
}
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}
.product-description {
    padding: 15px;
    color: darkgreen;
    font-style: italic;
}
.category-page-container {
    margin-top: 50px;
}
.prod-main {
    margin-top: 50px;
}
.single-product-wrapper {
    margin-top: 50px;
}
.product-details {
    padding: 15px;
}
a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #005177;
}

/* WooCommerce Layout */
.woocommerce {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
    background: #fff;
}

/* Product Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #2c3e50;
    color: #fff !important;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #1a252f;
}

/* Cart Page */
.woocommerce-cart table.cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

.woocommerce .cart_totals {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

/* Checkout Page */
.woocommerce-checkout form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    width: 100%;
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

/* My Account Page */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 25%;
    margin-right: 5%;
    background: #f5f5f5;
    padding: 20px;
    border: 1px solid #e2e2e2;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    font-weight: 600;
    display: block;
    color: #333;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: #0073aa;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: left;
    width: 70%;
    background: #fff;
    padding: 20px;
    border: 1px solid #e2e2e2;
}

/* Clear floats */
.woocommerce:after,
.woocommerce-account:after {
    content: "";
    display: table;
    clear: both;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 15px;
    border-left: 4px solid #0073aa;
    background: #e9f7fd;
    margin-bottom: 20px;
}

/* Form Fields */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Quantity field */
.woocommerce .quantity .qty {
    width: 60px;
    padding: 8px;
}
/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ccc;
    padding: 5px 0;
    z-index: 1000;
}
.bottom-nav a {
    text-align: center;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    flex: 1;
}
.bottom-nav a span {
    display: block;
    font-size: 12px;
}
body {
    padding-bottom: 60px;
}
@media(min-width:768px) {
    .bottom-nav { display: none; }
}
/* Remaining space (shortcodes or nav) */
.header-right {
    flex: 1;
    text-align: right;
}

.menu-toggle {
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 10px;
    display: inline-block;
    color: #333;
}

/* Mobile nav */
.mobile-menu {
    display: none;
}
body.menu-open .mobile-menu {
    display: block;
    background: #f9f9f9;
    padding: 10px;
}
@media(min-width:768px) {
    .menu-toggle, .mobile-menu { display: none; }
}
.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.qty-box .qty {
    width: 40px;
    text-align: center;
    margin: 0 5px;
}
.qty-box button {
    width: 30px;
    height: 30px;
}
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

.add-to-cart-btn {
    display: inline-block;
    margin-top: 10px;
}
        .ccs-carousel.swiper {
            width: 100% !important;
			padding: 20px;
        }
        .ccs-carousel .swiper-wrapper {
            display: flex !important;
        }
        .ccs-carousel .swiper-slide {
            width: auto !important;
            flex-shrink: 0 !important;
        }
        .ccs-carousel .swiper-slide.product-card {
            max-width: 100px;
            width: 100%;
            background: #fff;
            padding: 5px;
            border-radius: 6px !important;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .product-card img {
            width: 100%;
            height: auto;
            max-width: 100px;
            border-radius: 10px;
            margin-bottom: 10px;
        }
        .product-card h3 {
            font-size: 16px;
            margin: 10px 0 5px;
        }
        .rating {
            color: #ffa500;
            font-size: 14px;
            margin-bottom: 5px;
        }
        .price {
            font-weight: bold;
			font-size: 0.8em;
            margin: 5px 0;
			    display: flex;
    flex-direction: column;
        }
button.qty-btn {
    margin: -5px;
}
        .qty-box {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 10px 0;
        }
        .qty-box button {
            border-radius: 50%;
            border: 1px solid #ccc;
            padding: 4px 10px;
            background: #fff;
            font-size: 16px;
            cursor: pointer;
        }
        .qty-box input.qty {
            width: 35px;
            text-align: center;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .add-to-cart-btn {
            background: transparent;
            border: 2px solid #5e5ce6;
            color: #5e5ce6;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: bold;
            cursor: pointer;
        }
.qty-btn {
  width: 36px;
  height: 100%;
  background: #f44336;
  color: white;
  font-size: 16px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
  border-radius: 0px !important;
}

.qty-btn.minus {
  background: #fdecec;
  color: #f44336;
}

.qty-btn.plus {
  background: #f44336;
  color: white;
}

.prod-carousel-name {
  height: 2.8em; /* Adjust based on line-height for 2 lines */
  line-height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
font-size: 0.8em;
    font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Show up to 2 lines */
  -webkit-box-orient: vertical;
}
.ccs-category-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 0 10px;
    text-align: center;
}
/* Category bar */
.whci-cat-bar{z-index:9999;background:#fff;border-bottom:1px solid #eee;overflow:hidden}
.whci-cat-scroll{display:flex;gap:.5rem;overflow-x:auto;padding:.5rem .75rem}
.whci-cat{display:flex;flex-direction:column;align-items:center;gap:.25rem;border:1px solid #eee;background:#ffdb2d;border-radius:10px;padding:.5rem .75rem;white-space:nowrap;cursor:pointer}
.whci-cat.active {
    border-color: #111;
    background: darkred;
    color: white;
}
.whci-cat img{width:80px;height:60px;object-fit:cover;border-radius:10px}
.whci-cat-dot{width:28px;height:28px;border-radius:9999px;border:1px dashed #bbb;display:inline-block}
.whci-cat-name{font-size:.8rem}
.whci-cat-name {
    -webkit-box-orient: vertical;
    white-space: normal;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Product list */
.whci-product-list{padding:.75rem}
.whci-groups{display:flex;flex-direction:column;gap:1rem}
.whci-group{border:1px solid #eee;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.whci-group-header{position:sticky;top:1px;background:#ff9900;border-bottom:1px solid #eee;padding:.5rem .75rem;font-weight:700;border-top-left-radius:14px;border-top-right-radius:14px}
.whci-rows{display:flex;flex-direction:column;gap:.5rem;padding:.5rem}

/* Row */
.whci-row{display:grid;grid-template-columns:64px 1fr 96px;align-items:center;gap:.5rem;border:1px solid #eee;border-radius:12px;padding:.5rem;background:#fff}
.whci-thumb img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.whci-title{font-weight:600;font-size:.95rem;line-height:1.2}
.whci-price{font-size:.9rem;opacity:.9;margin-top:.25rem}
.whci-cta{display:flex;justify-content:flex-end}
.whci-add-btn{border:1px solid #111;background:#111;color:#fff;border-radius:10px;padding:.5rem .75rem;font-weight:600}
.whci-qty{border:1px solid #111;border-radius:10px;padding:.45rem .5rem;min-width:80px}
.whci-empty{padding:1rem;text-align:center;color:#666}

@media (max-width:480px){
  .whci-row{grid-template-columns:56px 1fr 88px}
  .whci-thumb img{width:56px;height:56px}
}
