/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
  
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-2, .col-md-3, .col-md-7,
.col-sm-6, .col-sm-11, .col-sm-12,
.col-xs-3, .col-xs-6, .col-xs-9 {
    padding: 0 15px;
}

.col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }

@media (max-width: 767px) {
    .col-xs-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xs-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xs-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.page-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-main {
    padding: 8px 0;
}

.h-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    max-width: 120px;
    height: auto;
    display: block;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 5px;
    font-size: 12px;
}

@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }
}

.h-navigation {
    display: flex;
    align-items: center;
}

.nav-sections {
    width: 100%;
}

.nav-sections-item-title {
    padding: 5px 0;
}

.nav-sections-item-switch {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.navigation {
    list-style: none;
}

/* Search Block */
.block-search {
    position: relative;
    width: 100%;
}

.block-title {
    display: none;
}

.form.minisearch {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.field.search {
    flex: 1;
    min-width: 0;
}

.field.search .label {
    display: none;
}

.control input {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.control input:focus {
    outline: none;
    border-color: #333;
}

.actions {
    flex-shrink: 0;
}

.actions button {
    padding: 6px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.actions button:hover {
    background-color: #555;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs .items {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.breadcrumbs .item {
    margin-right: 10px;
    font-size: 13px;
}

.breadcrumbs .item:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumbs a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.breadcrumbs strong {
    color: #666;
    font-weight: 500;
}

/* Main Content */
.page-main {
    flex: 1;
    padding: 30px 0;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.column.main {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Product Layout - Side by Side */
.product-info-main {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 20px;
}

.sticky-gall-wrap {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.pdp-brand-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pdp-brand-title a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.pdp-brand-title a:hover {
    color: #333;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.prod-attributes {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    gap: 10px;
}

.gender {
    padding-right: 10px;
    border-right: 1px solid #ddd;
}

.sku {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Price Box */
.product-info-price {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.price-box {
    margin-bottom: 0;
}

.price-wrapper {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.price {
    color: #333;
}

/* Product Overview */
.product.attribute.overview {
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.product.attribute.overview .value {
    line-height: 1.8;
}

.show-reviews {
    margin-bottom: 15px;
}

.more_button {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    transition: color 0.3s;
}

.more_button:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Payment EMI */
.payment_emi {
    background-color: #f0f7ff;
    padding: 15px 18px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 14px;
    border-left: 3px solid #0066cc;
    line-height: 1.6;
}

.payment_emi .price {
    color: #0066cc;
    font-weight: 700;
    font-size: 16px;
}

/* Product Form */
.product-add-form {
    margin-bottom: 0;
}

.fieldset {
    margin-bottom: 20px;
}

.product-info-stock-sku {
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f0f8f0;
    border-radius: 4px;
    border-left: 3px solid #008000;
}

.stock.available {
    color: #008000;
    font-weight: 600;
    font-size: 14px;
}

.field.qty {
    margin-bottom: 25px;
}

.label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.control select {
    width: 100%;
    max-width: 150px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.control select:focus {
    outline: none;
    border-color: #333;
}

.box-tocart {
    margin-top: 25px;
}

.box-tocart .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action.primary {
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action.primary:hover {
    background-color: #555;
}

.tocart {
    flex: 1;
    min-width: 200px;
}

.buynow-button {
    flex: 1;
    min-width: 200px;
}

.buynow-button .action.primary {
    width: 100%;
    background-color: #0066cc;
}

.buynow-button .action.primary:hover {
    background-color: #0052a3;
}

/* Product Gallery */
.sticky-gall-wrap {
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

.product.media {
    position: relative;
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.gallery-placeholder {
    width: 100%;
    background-color: transparent;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.fotorama {
    width: 100%;
    margin: 0;
    padding: 0;
}

.fotorama__wrap {
    position: relative;
    margin: 0;
    padding: 0;
}

.fotorama__stage {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.fotorama__stage__shaft {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.fotorama__stage__frame {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
}

.fotorama__img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Footer */
.page-footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer.content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright {
    font-size: 14px;
}

.copyright span {
    color: #fff;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .col-md-2, .col-md-3, .col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .column.main {
        flex-direction: column;
    }
    
    .product-info-main {
        max-width: 100%;
        order: 2;
    }
    
    .sticky-gall-wrap {
        max-width: 100%;
        order: 1;
        margin-bottom: 30px;
    }
    
    .h-navigation {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .page-main {
        padding: 20px 0;
    }
    
    .columns {
        padding: 0 10px;
    }
    
    .product-info-main {
        padding: 15px;
    }
    
    .page-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .price-wrapper {
        font-size: 26px;
    }
    
    .action.primary {
        width: 100%;
        padding: 14px 20px;
    }
    
    .box-tocart .actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .tocart, .buynow-button {
        width: 100%;
    }
    
    .header-main {
        padding: 6px 0;
    }
    
    .logo img {
        max-width: 200px;
    }
    
    .form.minisearch {
        flex-direction: column;
        gap: 10px;
    }
    
    .actions button {
        width: 100%;
    }
    
    .breadcrumbs .items {
        padding: 0 10px;
        font-size: 12px;
    }
}

/* Additional Styles from Original Site */
.theme-pearl .page-wrapper .page-footer {
    background-color: #000 !important;
    color: #fff !important;
}

.catalog-widget .gen-wrapper .gender,
.catalog-widget .gen-wrapper .color {
    font-size: 14px;
}

.catalog-widget .gen-wrapper .color span {
    font-weight: bold;
    font-size: 14px;
}

.catalog-widget .gen-wrapper {
    margin-top: 10px;
}

.catalog-widget .gen-wrapper .gender {
    padding-bottom: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-sections-item-content {
        display: none;
    }
    
    .nav-sections-item-content.active {
        display: block;
    }
    
    .h-search {
        margin-top: 15px;
        width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
    
    .h-logo {
        justify-content: space-between;
        width: 100%;
    }
    
    .h-navigation {
        width: 100%;
        margin-top: 10px;
    }
}

/* Additional Layout Improvements */
.container {
    width: 100%;
}

.row {
    align-items: center;
}

@media (min-width: 768px) {
    .row {
        flex-direction: row;
    }
}

/* Spacing improvements */
.prod-attributes .value {
    font-weight: 500;
}

/* Desktop Layout - Side by Side */
@media (min-width: 992px) {
    .column.main {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
    
    .sticky-gall-wrap {
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
    
    .product-info-main {
        flex: 1;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 991px) {
    .column.main {
        flex-direction: row;
        gap: 30px;
    }
    
    .product-info-main,
    .sticky-gall-wrap {
        flex: 1;
    }
}

/* Better alignment */
.page-title-wrapper {
    margin-bottom: 10px;
}

.product.attibute.brand {
    margin-bottom: 8px;
}
